From f9e0ae9465e47a1fa0bc817819f3a4cb5486c3ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20=C5=81=C4=85czkowski?= Date: Wed, 3 Apr 2024 21:31:26 +0200 Subject: [PATCH] IUM_04 - update Jenkinsfile - test --- Jenkinsfile | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 80c6579..889d57c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { dockerfile { filename 'Dockerfile' reuseNode true - args '-e KAGGLE_USERNAME=${KAGGLE_USERNAME} -e KAGGLE_KEY=${KAGGLE_KEY}' + args "-e KAGGLE_USERNAME=${KAGGLE_USERNAME} -e KAGGLE_KEY=${KAGGLE_KEY}" } } @@ -26,7 +26,7 @@ pipeline { } stages { - stage('Checkout repository') { + stage('Clone repository') { steps { checkout scm } @@ -35,12 +35,10 @@ pipeline { stage('Download dataset and preprocess data') { steps { script { - withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) { - sh "echo ${params.KAGGLE_USERNAME}" - sh "chmod +x ./download_dataset.py" - sh "python3 ./download_dataset.py ${params.CUTOFF}" - archiveArtifacts artifacts: 'datasets/*', onlyIfSuccessful: true - } + sh "echo ${params.KAGGLE_USERNAME}" + sh "chmod +x ./download_dataset.py" + sh "python3 ./download_dataset.py ${params.CUTOFF}" + archiveArtifacts artifacts: 'datasets/*', onlyIfSuccessful: true } } }