Update 'Jenkinsfile'

This commit is contained in:
Wojciech Mikołajski 2023-04-17 21:34:08 +02:00
parent fda87f68d6
commit eab5a4d838

7
Jenkinsfile vendored
View File

@ -28,11 +28,12 @@ node {
stage('sh: Shell Script') { stage('sh: Shell Script') {
// Run the maven build // Run the maven build
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { "KAGGLE_KEY=${params.KAGGLE_KEY}",
def cut = ${params.CUT} "CUT = ${params.CUT}" ]) {
sh 'echo CUT: $CUT'
sh 'kaggle datasets download -d mssmartypants/water-quality > output.txt' sh 'kaggle datasets download -d mssmartypants/water-quality > output.txt'
sh 'unzip -o water-quality.zip >> 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' archiveArtifacts artifacts: 'waterQuality.csv, output.txt'
} }
} }