We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 400d641 commit 3a0b26cCopy full SHA for 3a0b26c
Jenkinsfile
@@ -249,7 +249,7 @@ void runTest(Integer TEST_ID) {
249
void prepareNode() {
250
sh """
251
if [ ! -f /usr/local/bin/kubectl ]; then
252
- sudo curl -s -L -o /usr/local/bin/kubectl https://dl.k8s.io/release/\$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl && sudo chmod +x /usr/local/bin/kubectl
+ sudo curl -s -L -o /usr/local/bin/kubectl https://dl.k8s.io/release/\$(curl -L -s https://api.github.com/repos/kubernetes/kubernetes/releases/latest | jq -r .tag_name)/bin/linux/amd64/kubectl && sudo chmod +x /usr/local/bin/kubectl
253
fi
254
255
kubectl version --client --output=yaml
0 commit comments