From 6af999f0de13a8c9bb5c6d634b0c1f6b8ee0339b Mon Sep 17 00:00:00 2001 From: Kamil Guttmann Date: Sun, 3 Apr 2022 20:22:15 +0200 Subject: [PATCH] withDockerContainer --- Jenkinsfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e225e71..7b73639 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,8 @@ pipeline { agent { dockerfile { - args '-e KAGGLE_USERNAME="${params.KAGGLE_USERNAME}" -e KAGGLE_KEY="${params.KAGGLE_KEY}"' + additionalBuildArgs '-t ium' + args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}' } } parameters { @@ -30,11 +31,13 @@ pipeline { } stage("Download data") { steps { - sh "ls" - sh "./download_data.sh" - sh "python3 clean_and_split_data.py" - archiveArtifacts artifacts: "crime.test, crime.dev, crime.train", onlyIfSuccessful: true - } + withDockerContainer('ium'){ + sh "ls" + sh "./download_data.sh" + sh "python3 clean_and_split_data.py" + archiveArtifacts artifacts: "crime.test, crime.dev, crime.train", onlyIfSuccessful: true + } + } } } }