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