fix steps

This commit is contained in:
areeqakbr 2025-02-25 16:36:55 +07:00
parent d33ae6d91a
commit 2424a3f96b
1 changed files with 9 additions and 2 deletions

11
Jenkinsfile vendored
View File

@ -83,8 +83,15 @@ spec:
}
stage('Deploy to Kubernetes') {
withKubeConfig([credentialsId: "${KUBE_CONFIG_ID}"]) {
sh 'kubectl apply -f deploy/kubernetes/'
steps {
withKubeConfig([credentialsId: env.KUBE_CONFIG_ID]) {
script {
sh '''
set -e
kubectl apply -f deploy/kubernetes/ --validate=true
'''
}
}
}
}
}