From d200b7af2018e1320218258180df5348e9238b89 Mon Sep 17 00:00:00 2001 From: Adam Wojdyla Date: Sat, 26 Mar 2022 12:25:06 +0100 Subject: [PATCH] paramsfix3 --- Jenkinsfile | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9286b24..758fcf8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,29 +1,32 @@ pipeline { agent any - parameters ([ - string ( + parameters { + string( defaultValue: 'heatedboss2', description: 'Kaggle username', name: 'KAGGLE_USERNAME', trim: false - ), - password ( + ) + password( defaultValue: '', description: 'Kaggle token', name: 'KAGGLE_KEY' - ) - ]) + ) + } stages { stage('Checkout') { steps { - checkout([$class: 'GitSCM', branches: [[name: '*/master']], extensions: [], userRemoteConfigs: [[credentialsId: '8b8d54ee-f03c-4980-90b1-959faa97082b', url: 'https://git.wmi.amu.edu.pl/s444507/ium_444507.git']]]) + checkout([$class: 'GitSCM', branches: [ + [name: '*/master'] + ], extensions: [], userRemoteConfigs: [ + [credentialsId: '8b8d54ee-f03c-4980-90b1-959faa97082b', url: 'https://git.wmi.amu.edu.pl/s444507/ium_444507.git'] + ]]) } } stage('Script') { steps { script { - withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}" ]) - { + withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}", "KAGGLE_KEY=${params.KAGGLE_KEY}"]) { sh 'ls -la' sh './download.sh' }