Skip to content

Commit

Permalink
Merge pull request #117 from jenkinsci/test_on_newest_kubernetes_vers…
Browse files Browse the repository at this point in the history
…ions

test on newest Kubernetes versions
  • Loading branch information
maxlaverse authored Feb 17, 2024
2 parents c9d2a2e + 212d79f commit 2f5071a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/latest-version.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

major=1
for minor in `seq 21 27`; do
for minor in `seq 26 30`; 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
Expand Down
10 changes: 4 additions & 6 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,10 @@ String[] platforms = [

// Kubectl versions to test against
String[] kubectlVersions = [
'1.22.17',
'1.23.17',
'1.24.17',
'1.25.13',
'1.26.8',
'1.27.5'
'1.26.14',
'1.27.11',
'1.28.7',
'1.29.2',
]

// Not sure what this does yet
Expand Down
2 changes: 1 addition & 1 deletion 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.401.1 or higher (with jdk11 or jdk17).
* An executor with `kubectl` installed (tested against [v1.22 to v1.27][Jenkinsfile] included).
* An executor with `kubectl` installed (tested against [v1.22 to v1.29][Jenkinsfile] included).
* A Kubernetes cluster.

## How it works
Expand Down

0 comments on commit 2f5071a

Please sign in to comment.