IUM_04 - update Jenkinsfile - test

This commit is contained in:
Paweł Łączkowski 2024-04-03 21:33:25 +02:00
parent f9e0ae9465
commit 7082b65b99
1 changed files with 2 additions and 1 deletions

3
Jenkinsfile vendored
View File

@ -3,7 +3,7 @@ pipeline {
dockerfile { dockerfile {
filename 'Dockerfile' filename 'Dockerfile'
reuseNode true reuseNode true
args "-e KAGGLE_USERNAME=${KAGGLE_USERNAME} -e KAGGLE_KEY=${KAGGLE_KEY}" args "-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}"
} }
} }
@ -36,6 +36,7 @@ pipeline {
steps { steps {
script { script {
sh "echo ${params.KAGGLE_USERNAME}" sh "echo ${params.KAGGLE_USERNAME}"
sh "echo ${KAGGLE_USERNAME}"
sh "chmod +x ./download_dataset.py" sh "chmod +x ./download_dataset.py"
sh "python3 ./download_dataset.py ${params.CUTOFF}" sh "python3 ./download_dataset.py ${params.CUTOFF}"
archiveArtifacts artifacts: 'datasets/*', onlyIfSuccessful: true archiveArtifacts artifacts: 'datasets/*', onlyIfSuccessful: true