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