From 2878a3dcb83df7fd89988bb52ab8a2e1080f9e7c Mon Sep 17 00:00:00 2001 From: Anna Nowak Date: Sun, 28 Mar 2021 23:07:28 +0200 Subject: [PATCH] Add parameters section --- Jenkinsfile | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8ce0106..81ffadd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,23 @@ pipeline { agent any + parameters{ + string( + defaultValue: 'annadnowak', + description: 'Kaggle username', + name: 'KAGGLE_USERNAME', + trim: false + ), + password( + defaultValue: '', + description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials', + name: 'KAGGLE_KEY' + ) + string( + defaultValue: '10' + description: 'CUTOFF', + name: 'CUTOFF' + ) + } stages { stage('checkout: Check out from version control') { steps { @@ -18,11 +36,7 @@ pipeline { } stage('archive artifacts') { steps { - archiveArtifacts 'test.csv' - archiveArtifacts 'data_shuf.csv' - archiveArtifacts 'validation.csv' - archiveArtifacts 'train.csv' - archiveArtifacts 'header.csv' + archiveArtifacts 'test.csv,data_shuf.csv,validation.csv,train.csv,header.csv' } } }