ium_s487182/Jenkinsfile

31 lines
991 B
Plaintext
Raw Normal View History

2023-04-14 03:37:08 +02:00
node {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'login',
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'
)
])
])
}
2023-04-14 03:45:19 +02:00
stage('checkout: Check out from version control') {
2023-04-14 03:45:37 +02:00
git branch: 'master',
url: 'https://git.wmi.amu.edu.pl/s487182/ium_s487182'
2023-04-14 03:45:19 +02:00
}
stage('sh: Shell Script') {
2023-04-14 03:37:08 +02:00
// Run the maven build
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
2023-04-14 03:58:51 +02:00
sh 'kaggle datasets download -d mssmartypants/water-quality > file.zip'
archiveArtifacts 'file.zip'
2023-04-14 03:37:08 +02:00
}
}
2023-03-25 13:38:51 +01:00
}