Update Jenkinsfile
This commit is contained in:
parent
d12d7850ca
commit
b6c4c15a77
13
Jenkinsfile
vendored
13
Jenkinsfile
vendored
@ -17,13 +17,14 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
def customImage = docker.build("464914", "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} .")
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
||||||
customImage.inside {
|
def customImage = docker.build("test-image", "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} .")
|
||||||
sh 'bash ./get_dataset.sh ${params.CUTOFF}'
|
customImage.inside (
|
||||||
}
|
sh 'bash ./get_dataset.sh $CUTOFF'
|
||||||
}
|
|
||||||
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true
|
archiveArtifacts artifacts: 'artifacts/*', onlyIfSuccessful: true
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user