groovy interpolation of sensitive env vars

This commit is contained in:
patrycjalazna 2021-03-28 15:31:06 +02:00
parent a0f3f901dc
commit 0e5423599b

4
Jenkinsfile vendored
View File

@ -19,8 +19,8 @@ pipeline {
}
stage('sh: Shell Script') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
withEnv(['KAGGLE_USERNAME=$params.KAGGLE_USERNAME',
'KAGGLE_KEY=$params.KAGGLE_KEY']) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'chmod +x avocado-preprocessing.sh'
sh 'chmod +x ./avocado-preprocessing.sh'