From 3fabf235e4fbd86504d9850fb301d7aaa64521bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20=C5=81=C4=85czkowski?= Date: Wed, 3 Apr 2024 20:15:52 +0200 Subject: [PATCH] IUM_04 - update Jenkinsfile - fix --- Jenkinsfile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5c8f644..f90cc49 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -36,14 +36,16 @@ pipeline { stage('Download dataset and preprocess data') { steps { - docker.image('create-dataset-s464863').withRun( - "-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", - "-e KAGGLE_KEY=${params.KAGGLE_KEY}", - "-e CUTOFF=${params.CUTOFF}" - ) { - sh "chmod +x ./download_dataset.py" - sh "python3 ./download_dataset.py ${params.CUTOFF}" - archiveArtifacts artifacts: 'datasets/*', onlyIfSuccessful: true + script { + docker.image('create-dataset-s464863').withRun( + "-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", + "-e KAGGLE_KEY=${params.KAGGLE_KEY}", + "-e CUTOFF=${params.CUTOFF}" + ) { + sh "chmod +x ./download_dataset.py" + sh "python3 ./download_dataset.py ${params.CUTOFF}" + archiveArtifacts artifacts: 'datasets/*', onlyIfSuccessful: true + } } } }