fix steps
This commit is contained in:
parent
d33ae6d91a
commit
2424a3f96b
|
|
@ -83,8 +83,15 @@ spec:
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy to Kubernetes') {
|
stage('Deploy to Kubernetes') {
|
||||||
withKubeConfig([credentialsId: "${KUBE_CONFIG_ID}"]) {
|
steps {
|
||||||
sh 'kubectl apply -f deploy/kubernetes/'
|
withKubeConfig([credentialsId: env.KUBE_CONFIG_ID]) {
|
||||||
|
script {
|
||||||
|
sh '''
|
||||||
|
set -e
|
||||||
|
kubectl apply -f deploy/kubernetes/ --validate=true
|
||||||
|
'''
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue