Skip to content

Commit

Permalink
run tests for 1.22 and 1.23
Browse files Browse the repository at this point in the history
  • Loading branch information
maxlaverse committed Feb 20, 2022
1 parent c813dd7 commit 3ae981c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 14 deletions.
13 changes: 13 additions & 0 deletions .github/latest-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

major=1
for minor in `seq 18 23`; do
echo "Trying to find latest version or $major.$minor"
for patch in `seq 1 50`; do
code=`curl -s -I https://storage.googleapis.com/kubernetes-release/release/v$major.$minor.$patch/bin/linux/amd64/kubectl -o /dev/null -w "%{http_code}"`
if [ "$code" != "200" ]; then
echo "Latest version for $major.$minor is: v$major.$minor.$patch"
break
fi
done
done
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ cache:
- $HOME/.m2

env:
- KUBECTL_VERSION=v1.21.0
- KUBECTL_VERSION=v1.20.6
- KUBECTL_VERSION=v1.19.10
- KUBECTL_VERSION=v1.18.18
- KUBECTL_VERSION=v1.17.17
- KUBECTL_VERSION=v1.16.15
- KUBECTL_VERSION=v1.23.5
- KUBECTL_VERSION=v1.22.8
- KUBECTL_VERSION=v1.21.11
- KUBECTL_VERSION=v1.20.16
- KUBECTL_VERSION=v1.19.17
- KUBECTL_VERSION=v1.18.21

install:
- curl -LO https://storage.googleapis.com/kubernetes-release/release/$KUBECTL_VERSION/bin/linux/amd64/kubectl
Expand Down
12 changes: 6 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ String[] platforms = [

// Kubectl versions to test against
String[] kubectlVersions = [
'1.16.15',
'1.17.17',
'1.18.18',
'1.19.10',
'1.20.6',
'1.21.0',
'1.18.21',
'1.19.17',
'1.20.16',
'1.21.11',
'1.22.8',
'1.23.5'
]

// Not sure what this does yet
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ node {

## Prerequisites
* A jenkins installation running version 2.222.4 or higher (with jdk8 or jdk11).
* An executor with `kubectl` installed (tested against [v1.16 to v1.21][travis-config] included).
* An executor with `kubectl` installed (tested against [v1.18 to v1.23][Jenkinsfile] included).
* A Kubernetes cluster.

## How it works
Expand Down Expand Up @@ -172,7 +172,7 @@ mvn clean test
mvn release:prepare release:perform
```

[travis-config]:.travis.yml
[Jenkinsfile]:Jenkinsfile
[credentials-plugin]:https://github.com/jenkinsci/credentials-plugin
[kubernetes-plugin]:https://github.com/jenkinsci/kubernetes-plugin
[kubernetes-credentials-plugin]:https://github.com/jenkinsci/kubernetes-credentials-plugin
Expand Down

0 comments on commit 3ae981c

Please sign in to comment.