testing deployment
This commit is contained in:
parent
82a9e16800
commit
139bf68fc6
|
|
@ -32,7 +32,6 @@ spec:
|
||||||
IMAGE_NAME = 'winter-access/backend_nam'
|
IMAGE_NAME = 'winter-access/backend_nam'
|
||||||
KUBE_CONFIG_ID = '1c8bd8d9-1590-468c-afc7-24495d4330dc'
|
KUBE_CONFIG_ID = '1c8bd8d9-1590-468c-afc7-24495d4330dc'
|
||||||
CREDENTIALS_ID = '45c25ade-b1f8-455b-bdd6-e11ff141b70c'
|
CREDENTIALS_ID = '45c25ade-b1f8-455b-bdd6-e11ff141b70c'
|
||||||
DOCKERUSRPASS = '08063d26-0005-4942-9b87-9d819a13b973'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
stages {
|
stages {
|
||||||
|
|
@ -83,9 +82,9 @@ spec:
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('Deploy to Kubernetes') {
|
stage('Deploy to Kubernetes') {
|
||||||
steps {
|
steps {
|
||||||
withKubeConfig([credentialsId: "${KUBE_CONFIG_ID}"]) {
|
container('kubectl') { // ✅ Ensures `kubectl` runs in the correct container
|
||||||
script {
|
withKubeConfig([credentialsId: "${KUBE_CONFIG_ID}"]) {
|
||||||
sh '''
|
sh '''
|
||||||
set -e
|
set -e
|
||||||
kubectl apply -f deploy/kubernetes/ --validate=true
|
kubectl apply -f deploy/kubernetes/ --validate=true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue