From dc66d33ab9b54ee267be2b230e61ba8b000cdc2b 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:34:04 +0200 Subject: [PATCH] IUM_04 - update Jenkinsfile - fix --- Jenkinsfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 02673ed..b88a286 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,20 +28,16 @@ pipeline { stage('Build Docker image') { steps { - script { - docker.build("create-dataset-s464863") - } + docker.build("create-dataset-s464863") } } stage('Download dataset and preprocess data') { steps { - 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 - } + 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 } } }