From 604a36888f534aadc0fbf25ac2e6957888c87aae Mon Sep 17 00:00:00 2001 From: Jan Nowak Date: Sat, 10 Apr 2021 18:16:12 +0200 Subject: [PATCH] zmienne --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6ba4e6b..c18ef14 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,12 +27,11 @@ pipeline { } stage('docker') { - agent { dockerfile true } steps { withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) { - sh "chmod +x skrypt.sh" - sh "./skrypt.sh ${params.CUTOFF} | tee output.txt" + img = docker.build 'rokoch/ium:01' + img.run('-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}') } } }