From cb8634933572ee95fb982a97a9bf6eca0953d2c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20Ga=C5=82ka?= Date: Tue, 18 Apr 2023 15:13:26 +0200 Subject: [PATCH] Update 'Jenkinsfile' --- Jenkinsfile | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b588ca6..a983129 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,14 +1,23 @@ pipeline { agent any //Definijuemy parametry, które będzie można podać podczas wywoływania zadania - parameters { - string ( - defaultValue: 'Hello World!', - description: 'Tekst, którym chcesz przywitać świat', - name: 'INPUT_TEXT', - trim: false - ) - } + stage('Preparation') { + properties([ + parameters([ + string( + defaultValue: 'tomaszzitkiewicz', + 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' + ) + ]) + ]) + } stages { stage('Hello') { steps {