adding container kubectl to make this works
This commit is contained in:
parent
8f23cfe060
commit
cf44fe08ae
|
|
@ -79,6 +79,7 @@ spec:
|
||||||
|
|
||||||
stage('Deploy to Kubernetes') {
|
stage('Deploy to Kubernetes') {
|
||||||
steps {
|
steps {
|
||||||
|
container('kubectl') {
|
||||||
script {
|
script {
|
||||||
withCredentials([file(credentialsId: "${KUBE_CONFIG_ID}", variable: 'KUBE_CONFIG')]) {
|
withCredentials([file(credentialsId: "${KUBE_CONFIG_ID}", variable: 'KUBE_CONFIG')]) {
|
||||||
writeFile file: 'kubeconfig', text: KUBE_CONFIG
|
writeFile file: 'kubeconfig', text: KUBE_CONFIG
|
||||||
|
|
@ -91,6 +92,7 @@ spec:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
always {
|
always {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue