From 90c97b64d222c8753438adb7f042db202ea7b021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pokrywka?= Date: Sun, 27 Mar 2022 21:06:25 +0200 Subject: [PATCH] wip --- Jenkinsfile | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 55076e2..1eec58f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,13 +1,32 @@ pipeline { agent any + parameters { + string ( + defaultValue: 'mikolajpokrywka', + description: 'Kaggle username', + name: 'KAGGLE_USERNAME', + trim: false + ) + password( + defaultValue: '', + description: 'Kaggle token', + name: 'KAGGLE_KEY' + ) + string ( + defaultValue: '10000', + description: 'cut data', + name: 'CUTOFF', + trim: false + ) stages { stage('checkout: Check out from version control') { - steps { + steps { checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: 's444463', url: 'https://git.wmi.amu.edu.pl/s444463/ium_444463.git']]]) } } stage('bash script') { steps { + withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}" ]) { sh "./process_data.sh" } }