From c56a8950b89b56828e6a96829cf5e9bc73ad701e Mon Sep 17 00:00:00 2001 From: Adam Wojdyla Date: Sat, 26 Mar 2022 12:15:30 +0100 Subject: [PATCH] download test --- Jenkinsfile | 17 +++++++++++++---- download.sh | 2 ++ 2 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 download.sh diff --git a/Jenkinsfile b/Jenkinsfile index 30c49cf..194109f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,10 +2,15 @@ pipeline { agent any parameters { string ( - defaultValue: 'Hello World!', - description: 'Tekst, którym chcesz przywitać świat', - name: 'INPUT_TEXT', + defaultValue: 'heatedboss2', + description: 'Kaggle username', + name: 'KAGGLE_USERNAME', trim: false + ), + password ( + defaultValue: '', + description: 'Kaggle token', + name: 'KAGGLE_KEY' ) } stages { @@ -17,7 +22,11 @@ pipeline { stage('Script') { steps { script { - sh 'ls -la' + withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}" ]) + { + sh 'ls -la' + sh './download.sh' + } } } } diff --git a/download.sh b/download.sh new file mode 100644 index 0000000..21cafea --- /dev/null +++ b/download.sh @@ -0,0 +1,2 @@ +echo 'Downloading Dataset' +kaggle datasets download -d aleksandrglotov/car-prices-poland \ No newline at end of file