From 8710c9a6615d9c81fabebf8d0df71180ea06a30d Mon Sep 17 00:00:00 2001 From: Adam Wojdyla Date: Sun, 27 Mar 2022 09:42:36 +0200 Subject: [PATCH] export env variables in script --- Jenkinsfile2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile2 b/Jenkinsfile2 index 2ff282d..dbe16db 100644 --- a/Jenkinsfile2 +++ b/Jenkinsfile2 @@ -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' }