testing deployment

This commit is contained in:
areeqakbr 2025-02-25 16:46:11 +07:00
parent 82a9e16800
commit 139bf68fc6
1 changed files with 3 additions and 4 deletions

3
Jenkinsfile vendored
View File

@ -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 {
@ -84,8 +83,8 @@ spec:
stage('Deploy to Kubernetes') { stage('Deploy to Kubernetes') {
steps { steps {
container('kubectl') { // ✅ Ensures `kubectl` runs in the correct container
withKubeConfig([credentialsId: "${KUBE_CONFIG_ID}"]) { withKubeConfig([credentialsId: "${KUBE_CONFIG_ID}"]) {
script {
sh ''' sh '''
set -e set -e
kubectl apply -f deploy/kubernetes/ --validate=true kubectl apply -f deploy/kubernetes/ --validate=true