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