From 389f5464a407f1ede171c3c92750ce072f9ed1fa Mon Sep 17 00:00:00 2001 From: Maciej Date: Mon, 29 Mar 2021 01:04:09 +0200 Subject: [PATCH] . --- Jenkinsfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 623892d..fbfe00f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,6 +9,10 @@ pipeline { trim: false ) } + environment { + KAGGLE_KEY = ${params.key} + KAGGLE_USERNAME = ${params.username} + } stages { stage('checkout: Check out from version control') { @@ -18,12 +22,9 @@ pipeline { } stage('sh: Shell Script') { steps { - withEnv(['KAGGLE_USERNAME=$params.username', - 'KAGGLE_KEY=$params.key' ]) { - sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' - sh 'chmod +x preparations.sh' - sh './preparations.sh' - } + sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' + sh 'chmod +x preparations.sh' + sh './preparations.sh' } } }