fixing deploy to kubernetes
This commit is contained in:
parent
544b077769
commit
8f23cfe060
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue