download test

This commit is contained in:
Adam Wojdyla 2022-03-26 12:15:30 +01:00
parent d2defd8dd0
commit c56a8950b8
2 changed files with 15 additions and 4 deletions

17
Jenkinsfile vendored
View File

@ -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'
}
}
}
}

2
download.sh Normal file
View File

@ -0,0 +1,2 @@
echo 'Downloading Dataset'
kaggle datasets download -d aleksandrglotov/car-prices-poland