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 275c2e7
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 38 deletions.
12 changes: 12 additions & 0 deletions .github/latest-version.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

major=1
for minor in `seq 18 23`; do
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-1))"
break
fi
done
done
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

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.20',
'1.19.16',
'1.20.15',
'1.21.10',
'1.22.7',
'1.23.4'
]

// 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 275c2e7

Please sign in to comment.