withDockerContainer

This commit is contained in:
Kamil Guttmann 2022-04-03 20:22:15 +02:00
parent 67034ce122
commit 6af999f0de

5
Jenkinsfile vendored
View File

@ -1,7 +1,8 @@
pipeline { pipeline {
agent { agent {
dockerfile { dockerfile {
args '-e KAGGLE_USERNAME="${params.KAGGLE_USERNAME}" -e KAGGLE_KEY="${params.KAGGLE_KEY}"' additionalBuildArgs '-t ium'
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
} }
} }
parameters { parameters {
@ -30,6 +31,7 @@ pipeline {
} }
stage("Download data") { stage("Download data") {
steps { steps {
withDockerContainer('ium'){
sh "ls" sh "ls"
sh "./download_data.sh" sh "./download_data.sh"
sh "python3 clean_and_split_data.py" sh "python3 clean_and_split_data.py"
@ -37,4 +39,5 @@ pipeline {
} }
} }
} }
}
} }