download test
This commit is contained in:
parent
d2defd8dd0
commit
c56a8950b8
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -2,10 +2,15 @@ pipeline {
|
|||||||
agent any
|
agent any
|
||||||
parameters {
|
parameters {
|
||||||
string (
|
string (
|
||||||
defaultValue: 'Hello World!',
|
defaultValue: 'heatedboss2',
|
||||||
description: 'Tekst, którym chcesz przywitać świat',
|
description: 'Kaggle username',
|
||||||
name: 'INPUT_TEXT',
|
name: 'KAGGLE_USERNAME',
|
||||||
trim: false
|
trim: false
|
||||||
|
),
|
||||||
|
password (
|
||||||
|
defaultValue: '',
|
||||||
|
description: 'Kaggle token',
|
||||||
|
name: 'KAGGLE_KEY'
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
stages {
|
stages {
|
||||||
@ -17,7 +22,11 @@ pipeline {
|
|||||||
stage('Script') {
|
stage('Script') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}","KAGGLE_KEY=${params.KAGGLE_KEY}" ])
|
||||||
|
{
|
||||||
sh 'ls -la'
|
sh 'ls -la'
|
||||||
|
sh './download.sh'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
download.sh
Normal file
2
download.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
echo 'Downloading Dataset'
|
||||||
|
kaggle datasets download -d aleksandrglotov/car-prices-poland
|
Loading…
Reference in New Issue
Block a user