28 lines
722 B
Groovy
28 lines
722 B
Groovy
pipeline {
|
|
agent any
|
|
parameters {
|
|
string(
|
|
defaultValue: 'worldwidepaniel',
|
|
description: 'Kaggle username',
|
|
name: 'KAGGLE_USERNAME',
|
|
trim: false
|
|
)
|
|
password(
|
|
defaultValue: '',
|
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
name: 'KAGGLE_KEY'
|
|
)
|
|
}
|
|
stages {
|
|
stage('Download data') {
|
|
steps {
|
|
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
|
|
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
|
|
sh 'chmod 777 ./data_download.sh'
|
|
sh './data_download.sh'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|