fixing deploy to kubernetes

This commit is contained in:
areeqakbr 2025-02-25 14:02:17 +07:00
parent 544b077769
commit 8f23cfe060
1 changed files with 1 additions and 1 deletions

2
Jenkinsfile vendored
View File

@ -80,7 +80,7 @@ spec:
stage('Deploy to Kubernetes') {
steps {
script {
withCredentials([string(credentialsId: "${KUBE_CONFIG_ID}", variable: 'KUBE_CONFIG')]) {
withCredentials([file(credentialsId: "${KUBE_CONFIG_ID}", variable: 'KUBE_CONFIG')]) {
writeFile file: 'kubeconfig', text: KUBE_CONFIG
sh """
kubectl apply -f deploy/kubernetes/dev.yaml --kubeconfig=kubeconfig