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