From 1aece3e728d0e5435f111002c114d7b21cd9123c Mon Sep 17 00:00:00 2001 From: s434765 Date: Sat, 27 Mar 2021 20:52:07 +0100 Subject: [PATCH] script fix --- Jenkinsfile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9f29fdc..e54f597 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,8 +1,6 @@ -pipeline { - agent any - stages { +node { stage('Preparation') { - steps{ + properties([ parameters([ string(defaultValue: 'karopa', @@ -16,10 +14,9 @@ pipeline { ]) ] ) - } + } stage('Clone repo') { - steps{ withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]){ checkout([$class: 'GitSCM', branches: [[name: '*/master']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s434765/ium_434765']]]) sh 'chmod 777 get_data_simple.sh' @@ -30,6 +27,4 @@ pipeline { archiveArtifacts data_train } } - } - } -} \ No newline at end of file + } \ No newline at end of file