diff --git a/Jenkinsfile b/Jenkinsfile index 6c4f5e4..06f3e2d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,10 +13,6 @@ pipeline { name: 'KAGGLE_KEY' ) } - environment { - KAGGLE_USERNAME="$params.KAGGLE_USERNAME" - KAGGLE_KEY="$params.KAGGLE_KEY" - } stages { stage('Install dependencies') { steps { @@ -25,15 +21,11 @@ pipeline { } stage('Fetch and split dataset') { steps { - script { - withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", - "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { - sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME' - sh 'kaggle datasets list' - } + withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", + "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { + sh "chmod u+x ./download_dataset.sh" + sh "./download_dataset.sh" } - sh "chmod u+x ./download_dataset.sh" - sh "./download_dataset.sh" } } }