Zad 04.Docker Konteneryzacja - chmod in Jenkinsfile

This commit is contained in:
Cezary Gałązkiewicz 2022-04-11 01:11:21 +02:00
parent d1b4ca5675
commit d4aa8583fa

View File

@ -1,8 +1,7 @@
pipeline {
agent {
dockerfile {
additionalBuildArgs '-t ium'
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
additionalBuildArgs '-t ium --build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY}'
}
}
parameters {
@ -30,6 +29,7 @@ pipeline {
}
stage('Shell script') {
steps {
sh 'chmod u+x ./download.sh'
sh "./download_dataset.sh"
sh "python3 process_dataset.py"
archiveArtifacts artifacts: "steel_industry_data_test.csv, steel_industry_data_dev.csv, steel_industry_data_train.csv", onlyIfSuccessful: true