export env variables in script

This commit is contained in:
Adam Wojdyla 2022-03-27 09:42:36 +02:00
parent 34b2d4184a
commit 8710c9a661

View File

@ -40,6 +40,8 @@ pipeline {
script {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'export KAGGLE_USERNAME=${params.KAGGLE_USERNAME}'
sh 'export KAGGLE_KEY=${params.KAGGLE_KEY}'
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'kaggle datasets list'
}