From 63fb2b6347c9bfd603d387b426f3ca169af7df43 Mon Sep 17 00:00:00 2001 From: Kacper Dudzic Date: Fri, 25 Mar 2022 22:11:08 +0100 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 42 +++++++++++++++++++----------------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f90ad0c..914935b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,28 +1,24 @@ pipeline { - agent any + agent any + parameters{ + string( + defaultValue: 'kaerde', + description: 'Kaggle username', + name: 'KAGGLE_USERNAME', + trim: false + ) + password( + defaultValue: '36b8c984addfb7a043d772a9c6b23a1f', + description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials', + name: 'KAGGLE_KEY' + ) + string( + defaultValue: '130000', + description: 'wielkość odcięcia zbioru danych', + name: 'CUTOFF' + ) + } stages { - stage('Preparation') { - properties([ - parameters([ - string( - defaultValue: 'kaerde', - description: 'Kaggle username', - name: 'KAGGLE_USERNAME', - trim: false - ), - password( - defaultValue: '36b8c984addfb7a043d772a9c6b23a1f', - description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials', - name: 'KAGGLE_KEY' - ), - string( - defaultValue: '130000', - description: 'wielkość odcięcia zbioru danych', - name: 'CUTOFF' - ) - ]) - ]) - } stage('Stage 1') { steps { withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",