This commit is contained in:
AWieczarek 2024-04-09 17:50:16 +02:00
parent 4c8c4dc900
commit c020995835

8
Jenkinsfile vendored
View File

@ -17,7 +17,7 @@ pipeline {
stage('Download, Process, and Split Dataset') { stage('Download, Process, and Split Dataset') {
agent { agent {
dockerfile { dockerfile {
args "-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME}" args "-e KAGGLE_USERNAME=${env.KAGGLE_USERNAME}"
} }
} }
steps { steps {
@ -25,9 +25,9 @@ pipeline {
"KAGGLE_USERNAME=${env.KAGGLE_USERNAME}", "KAGGLE_USERNAME=${env.KAGGLE_USERNAME}",
"KAGGLE_KEY=${env.KAGGLE_KEY}" "KAGGLE_KEY=${env.KAGGLE_KEY}"
]) { ]) {
sh "echo 'The parameter value is: $KAGGLE_USERNAME'" // sh "echo 'The parameter value is: $KAGGLE_USERNAME'"
sh 'export KAGGLE_USERNAME=${env.KAGGLE_USERNAME}"' // sh 'export KAGGLE_USERNAME=${env.KAGGLE_USERNAME}"'
sh 'export KAGGLE_KEY=${env.KAGGLE_KEY}"' // sh 'export KAGGLE_KEY=${env.KAGGLE_KEY}"'
sh "python3 IUM_02.py" sh "python3 IUM_02.py"
} }
} }