adding detailing
This commit is contained in:
parent
d06e3fb7f8
commit
8daaf21f7d
|
|
@ -84,10 +84,11 @@ spec:
|
||||||
stage('Deploy to Kubernetes') {
|
stage('Deploy to Kubernetes') {
|
||||||
steps {
|
steps {
|
||||||
container('kubectl') { // ✅ Runs kubectl inside the correct container
|
container('kubectl') { // ✅ Runs kubectl inside the correct container
|
||||||
|
sh 'kubectl version --client'
|
||||||
withKubeConfig([credentialsId: '1c8bd8d9-1590-468c-afc7-24495d4330dc']) { // ✅ Uses the Jenkins credential
|
withKubeConfig([credentialsId: '1c8bd8d9-1590-468c-afc7-24495d4330dc']) { // ✅ Uses the Jenkins credential
|
||||||
sh '''
|
sh '''
|
||||||
set -e
|
set -e
|
||||||
kubectl apply -f deploy/kubernetes/ --validate=true
|
kubectl apply -f deploy/kubernetes/dev.yaml --validate=true
|
||||||
'''
|
'''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue