From d7dc7bb848db980cf341ae45f119b92d15ab7a9c Mon Sep 17 00:00:00 2001 From: ulaniuk Date: Sun, 3 Apr 2022 21:51:33 +0200 Subject: [PATCH] 1 --- Jenkinsfile | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) 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' }