From 50c62c859cfdd8ef038fb0e40f36fb379ef261bf Mon Sep 17 00:00:00 2001 From: AWieczarek Date: Tue, 9 Apr 2024 18:03:50 +0200 Subject: [PATCH] IUM_04 --- Jenkinsfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 95e87d7..07e6dfc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline { - agent any + agent { dockerfile true } parameters { string(name: 'CUTOFF', defaultValue: '10000', description: 'Liczba wierszy do obcięcia ze zbioru danych') @@ -15,16 +15,13 @@ pipeline { } stage('Download, Process, and Split Dataset') { - agent { - dockerfile true - } steps { withEnv([ "KAGGLE_USERNAME=${env.KAGGLE_USERNAME}", "KAGGLE_KEY=${env.KAGGLE_KEY}" ]) { - sh "echo === VARIABLE SUBSTITUTION ===" - sh "echo ${params.KAGGLE_USERNAME}" + sh 'export KAGGLE_USERNAME=${env.KAGGLE_USERNAME}"' + sh 'export KAGGLE_KEY=${env.KAGGLE_KEY}"' sh "python3 IUM_02.py" } }