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