Update Jenkinsfile
This commit is contained in:
parent
46146448d6
commit
5caa1d82b5
7
Jenkinsfile
vendored
7
Jenkinsfile
vendored
@ -16,10 +16,8 @@ pipeline {
|
|||||||
script {
|
script {
|
||||||
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||||
def testImage = docker.build("test-image")
|
def customImage = docker.build("custom-image", "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} .")
|
||||||
testImage.inside {
|
customImage.inside {
|
||||||
sh 'echo 123'
|
|
||||||
}
|
|
||||||
sh 'bash ./get_dataset.sh $CUTOFF'
|
sh 'bash ./get_dataset.sh $CUTOFF'
|
||||||
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true
|
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true
|
||||||
}
|
}
|
||||||
@ -28,3 +26,4 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user