Skip to content

Commit

Permalink
YD-671 Use withCredentials
Browse files Browse the repository at this point in the history
  • Loading branch information
Bert-R committed Jan 4, 2020
1 parent ccfd47a commit 641ae34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ pipeline {
KUBECONFIG = "/opt/ope-cloudbees/yona/k8s/admin.conf"
}
steps {
getValuesYaml(credentials("test-credential"), 4, "/helm/values.yaml", buildConfigPath)
withCredentials([string( credentialsId: 'test-credential', variable: 'token')]) {
getValuesYaml(token, 4, "/helm/values.yaml", buildConfigPath)
}
sh 'while ! $(curl -s -q -f -o /dev/null https://jump.ops.yona.nu/helm-charts/yona-1.2.$BUILD_NUMBER_TO_DEPLOY.tgz) ;do echo Waiting for Helm chart to become available; sleep 5; done'
sh script: 'helm delete --purge yona; kubectl delete -n yona configmaps --all; kubectl delete -n yona job --all; kubectl delete -n yona secrets --all; kubectl delete pvc -n yona --all', returnStatus: true
sh script: 'echo Waiting for purge to complete; sleep 30'
Expand Down

0 comments on commit 641ae34

Please sign in to comment.