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') {
|
||||
steps {
|
||||
container('kubectl') {
|
||||
script {
|
||||
withCredentials([file(credentialsId: "${KUBE_CONFIG_ID}", variable: 'KUBE_CONFIG')]) {
|
||||
writeFile file: 'kubeconfig', text: KUBE_CONFIG
|
||||
|
|
@ -91,6 +92,7 @@ spec:
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
always {
|
||||
|
|
|
|||
Loading…
Reference in New Issue