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