withDockerContainer
This commit is contained in:
parent
67034ce122
commit
6af999f0de
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -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,11 +31,13 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage("Download data") {
|
stage("Download data") {
|
||||||
steps {
|
steps {
|
||||||
sh "ls"
|
withDockerContainer('ium'){
|
||||||
sh "./download_data.sh"
|
sh "ls"
|
||||||
sh "python3 clean_and_split_data.py"
|
sh "./download_data.sh"
|
||||||
archiveArtifacts artifacts: "crime.test, crime.dev, crime.train", onlyIfSuccessful: true
|
sh "python3 clean_and_split_data.py"
|
||||||
}
|
archiveArtifacts artifacts: "crime.test, crime.dev, crime.train", onlyIfSuccessful: true
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user