2021-03-28 22:19:38 +02:00
|
|
|
pipeline {
|
|
|
|
agent any
|
2021-03-28 23:14:31 +02:00
|
|
|
|
2021-03-28 23:15:28 +02:00
|
|
|
parameters{
|
2021-03-28 23:06:58 +02:00
|
|
|
string(
|
2021-03-28 23:55:35 +02:00
|
|
|
defaultValue: 'maciejsobkowiak',
|
2021-03-28 23:06:58 +02:00
|
|
|
description: 'Kaggle username',
|
2021-03-29 00:11:59 +02:00
|
|
|
name: 'username',
|
2021-03-28 23:06:58 +02:00
|
|
|
trim: false
|
2021-03-28 23:16:32 +02:00
|
|
|
)
|
2021-03-28 23:15:28 +02:00
|
|
|
}
|
2021-03-28 23:14:31 +02:00
|
|
|
|
|
|
|
stages {
|
2021-03-28 22:28:55 +02:00
|
|
|
stage('checkout: Check out from version control') {
|
2021-03-28 22:19:38 +02:00
|
|
|
steps {
|
2021-03-28 22:28:55 +02:00
|
|
|
git branch: 'master',
|
|
|
|
url: 'https://git.wmi.amu.edu.pl/s434784/ium_434784'
|
2021-03-28 22:19:38 +02:00
|
|
|
}
|
|
|
|
}
|
2021-03-28 22:41:59 +02:00
|
|
|
stage('sh: Shell Script') {
|
|
|
|
steps {
|
2021-03-29 00:25:56 +02:00
|
|
|
// withEnv(['KAGGLE_USERNAME=$params.username',
|
|
|
|
// 'KAGGLE_KEY=$params.key' ]) {
|
|
|
|
sh "KAGGLE_USERNAME=${params.username} KAGGLE_KEY=${params.key} kaggle datasets download -d szamil/who-suicide-statistics"
|
|
|
|
// sh 'echo KAGGLE_USERNAME: $KAGGLE_USERNAME'
|
|
|
|
// sh 'kaggle datasets download -d szamil/who-suicide-statistics'
|
2021-03-29 00:27:51 +02:00
|
|
|
// }
|
2021-03-28 22:41:59 +02:00
|
|
|
}
|
|
|
|
}
|
2021-03-28 22:19:38 +02:00
|
|
|
}
|
|
|
|
}
|