From 139bf68fc6a4ce24a8ca72a4623f19f22b625e4e Mon Sep 17 00:00:00 2001 From: areeqakbr Date: Tue, 25 Feb 2025 16:46:11 +0700 Subject: [PATCH] testing deployment --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 30dd121..6af369c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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