Update Jenkinsfile

This commit is contained in:
Alicja Szulecka 2024-04-02 14:27:03 +02:00
parent 46146448d6
commit 5caa1d82b5

7
Jenkinsfile vendored
View File

@ -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
}
@ -28,3 +26,4 @@ pipeline {
}
}
}
}