From 66fea60771ecd3cac76ec0b72081f1d80cbe10b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pokrywka?= Date: Sun, 3 Apr 2022 13:11:28 +0200 Subject: [PATCH] refactoring --- Jenkinsfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6a33042..2da3098 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,5 @@ pipeline { - agent { - dockerfile true - } + parameters { string ( defaultValue: 'mikolajpokrywka', @@ -21,6 +19,11 @@ pipeline { trim: false ) } + agent { + dockerfile { + additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} -t ium" + } + } stages { stage('checkout: Check out from version control') { steps {