diff --git a/Jenkinsfile b/Jenkinsfile index 476f3bc..71dd943 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,9 @@ pipeline { - + agent { + dockerfile { + additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} --build-arg CUTOFF=${params.CUTOFF} -t ium" + } + } parameters { string ( defaultValue: 'mikolajpokrywka', @@ -19,11 +23,6 @@ pipeline { trim: false ) } - agent { - dockerfile { - additionalBuildArgs "-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY} -t ium" - } - } stages { stage('checkout: Check out from version control') { steps { @@ -36,7 +35,7 @@ pipeline { "KAGGLE_KEY=${params.KAGGLE_KEY}", "CUTOFF=${params.CUTOFF}"]) { // sh "./process_data.sh" - sh "python3 download_data_and_process.py" + sh 'python3 ./download_data_and_process.py' archiveArtifacts artifacts: "data_test.csv, data_dev.csv, data_train.csv, column_titles.csv" } }