diff --git a/Jenkinsfile b/Jenkinsfile index 07e6dfc..ad3a0a7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline { - agent { dockerfile true } + agent any parameters { string(name: 'CUTOFF', defaultValue: '10000', description: 'Liczba wierszy do obcięcia ze zbioru danych') @@ -15,11 +15,17 @@ pipeline { } stage('Download, Process, and Split Dataset') { + agent { + dockerfile { + args "-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME}" + } + } steps { withEnv([ "KAGGLE_USERNAME=${env.KAGGLE_USERNAME}", "KAGGLE_KEY=${env.KAGGLE_KEY}" ]) { + sh "echo 'The parameter value is: $KAGGLE_USERNAME'" sh 'export KAGGLE_USERNAME=${env.KAGGLE_USERNAME}"' sh 'export KAGGLE_KEY=${env.KAGGLE_KEY}"' sh "python3 IUM_02.py"