jenkinsfile change of docker placement
This commit is contained in:
parent
dab0d38bd6
commit
c3729f90ae
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -1,4 +1,7 @@
|
|||||||
node {
|
node {
|
||||||
|
checkout scm
|
||||||
|
def dockerimage = docker.build("titanic-image")
|
||||||
|
dockerimage.inside {
|
||||||
stage('Preparation') {
|
stage('Preparation') {
|
||||||
properties([
|
properties([
|
||||||
parameters([
|
parameters([
|
||||||
@ -25,14 +28,9 @@ node {
|
|||||||
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}"]) {
|
||||||
checkout scm
|
|
||||||
def dockerimage = docker.build("titanic-image")
|
|
||||||
dockerimage.inside {
|
|
||||||
sh "KAGGLE_USERNAME= ${KAGGLE_USERNAME}"
|
|
||||||
sh "KAGGLE_KEY= ${KAGGLE_KEY}"
|
|
||||||
sh "./script.sh ${CUTOFF}"
|
sh "./script.sh ${CUTOFF}"
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -41,4 +39,5 @@ node {
|
|||||||
archiveArtifacts 'output.txt'
|
archiveArtifacts 'output.txt'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user