From eab5a4d8383281569b690f535ecc7c17c9e63ef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wojciech=20Miko=C5=82ajski?= Date: Mon, 17 Apr 2023 21:34:08 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5b1dfa0..e4f93a1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,11 +28,12 @@ node { stage('sh: Shell Script') { // Run the maven build withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", - "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { - def cut = ${params.CUT} + "KAGGLE_KEY=${params.KAGGLE_KEY}", + "CUT = ${params.CUT}" ]) { + sh 'echo CUT: $CUT' sh 'kaggle datasets download -d mssmartypants/water-quality > output.txt' sh 'unzip -o water-quality.zip >> output.txt' - sh 'python3 create_dataset.py ${cut} >> output.txt' + sh 'python3 create_dataset.py >> output.txt' archiveArtifacts artifacts: 'waterQuality.csv, output.txt' } }