IUM_04 - update Jenkinsfile - fix

This commit is contained in:
Paweł Łączkowski 2024-04-03 20:20:48 +02:00
parent 3fabf235e4
commit 43ab7d2511

6
Jenkinsfile vendored
View File

@ -37,11 +37,7 @@ pipeline {
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}"
) {
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