ium_434784/Jenkinsfile
2021-03-28 23:40:24 +02:00

35 lines
1.1 KiB
Groovy

pipeline {
agent any
parameters{
string(
defaultValue: 'maciejsobkowiak',
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('checkout: Check out from version control') {
steps {
git branch: 'master',
url: 'https://git.wmi.amu.edu.pl/s434784/ium_434784'
}
}
stage('sh: Shell Script') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
sh 'kaggle datasets download -d szamil/who-suicide-statistics'
}
}
}
}
}