diff --git a/Jenkinsfile b/Jenkinsfile index 7de59ef..4ea365b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,10 @@ pipeline { - agent any + agent { + dockerfile { + additionalBuildArgs '-t ium' + args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}' + } + } parameters{ password( defaultValue: '', @@ -33,16 +38,9 @@ pipeline { } } } - stage("Dara Preparation") { - agent { - dockerfile { - additionalBuildArgs '-t ium' - args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}' - } - } + stage("Data Preparation") { steps { sh 'echo "PREPARATION"' - sh "chmod u+x ./preparation.sh" sh "./preparation.sh" sh "python create_data.py" archiveArtifacts 'KaggleV2-May-2016.csv' @@ -51,7 +49,6 @@ pipeline { stage("Statistics") { steps { sh 'echo "STATISTICS"' - sh "chmod u+x ./statistics.sh" sh "./statistics.sh" archiveArtifacts 'statistics.csv' }