download kaggle dataset by bash script in Jenkinsfile
This commit is contained in:
parent
b5288eefec
commit
b38a9b9333
16
Jenkinsfile
vendored
16
Jenkinsfile
vendored
@ -1,5 +1,18 @@
|
|||||||
pipeline {
|
pipeline {
|
||||||
agent any
|
agent any
|
||||||
|
parameters {
|
||||||
|
string (
|
||||||
|
defaultValue: 'wirus006',
|
||||||
|
description: 'Kaggle username',
|
||||||
|
name: 'KAGGLE_USERNAME',
|
||||||
|
trim: false
|
||||||
|
)
|
||||||
|
password (
|
||||||
|
defaultValue: 'c3323e37d3f91a0914d0172ef3c7c30c',
|
||||||
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
||||||
|
name: 'KAGGLE_KEY'
|
||||||
|
)
|
||||||
|
}
|
||||||
stages {
|
stages {
|
||||||
stage('Hello') {
|
stage('Hello') {
|
||||||
steps {
|
steps {
|
||||||
@ -13,9 +26,12 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage('Shell Script') {
|
stage('Shell Script') {
|
||||||
steps {
|
steps {
|
||||||
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
||||||
|
"KAGGLE_KEY=${params.KAGGLE_KEY}"]) {
|
||||||
sh "chmod +x -R ${env.WORKSPACE}"
|
sh "chmod +x -R ${env.WORKSPACE}"
|
||||||
sh './simple_init.sh'
|
sh './simple_init.sh'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +1,2 @@
|
|||||||
echo 'test'
|
echo 'test'
|
||||||
|
kaggle datasets download -d hakeem/atp-and-wta-tennis-data
|
||||||
|
Loading…
Reference in New Issue
Block a user