IUM_04 - update Jenkinsfile - fix
This commit is contained in:
parent
43ab7d2511
commit
dc66d33ab9
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user