Jenkins with docker
This commit is contained in:
parent
112702b39b
commit
b1bd4aeee9
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -1,5 +1,7 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent {
|
||||||
|
dockerfile true
|
||||||
|
}
|
||||||
parameters {
|
parameters {
|
||||||
string (
|
string (
|
||||||
defaultValue: 'mikolajpokrywka',
|
defaultValue: 'mikolajpokrywka',
|
||||||
@ -30,7 +32,7 @@ pipeline {
|
|||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}",
|
"KAGGLE_KEY=${params.KAGGLE_KEY}",
|
||||||
"CUTOFF=${params.CUTOFF}"]) {
|
"CUTOFF=${params.CUTOFF}"]) {
|
||||||
sh "./process_data.sh"
|
// sh "./process_data.sh"
|
||||||
archiveArtifacts artifacts: "data_test.csv, data_dev.csv, data_train.csv"
|
archiveArtifacts artifacts: "data_test.csv, data_dev.csv, data_train.csv"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Run with docker
|
# Run with docker
|
||||||
`docker build -t ium .`
|
`docker build -t ium .`
|
||||||
|
|
||||||
`docker run -i -e KAGGLE_USERNAME='your_kaggle_username' -e KAGGLE_KEY='<your_kaggle_key>' -i ium:latest`
|
`docker run -e KAGGLE_USERNAME='your_kaggle_username' -e KAGGLE_KEY='<your_kaggle_key>' -i ium:latest`
|
||||||
|
Loading…
Reference in New Issue
Block a user