adding container kubectl to make this works

This commit is contained in:
areeqakbr 2025-02-25 14:04:39 +07:00
parent 8f23cfe060
commit cf44fe08ae
1 changed files with 9 additions and 7 deletions

2
Jenkinsfile vendored
View File

@ -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 {