Update 'Jenkinsfile'

This commit is contained in:
Kacper Dudzic 2022-04-02 16:40:30 +02:00
parent 41bcce7dda
commit be10e1759b

11
Jenkinsfile vendored
View File

@ -13,25 +13,18 @@ pipeline {
)
}
agent {
dockerfile {
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY}"
dockerfile true
}
}
stages {
stage('Stage 1') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'chmod u+x ./download_dataset.sh ./process_dataset.py'
echo 'Downloading dataset...'
sh './download_dataset.sh'
sh 'chmod u+x ./process_dataset.py'
echo 'Dataset downloaded'
echo 'Processing dataset...'
sh 'export PYTHONIOENCODING=UTF-8'
sh 'python3 process_dataset.py'
echo 'Dataset processed'
}
}
}
}
}