ium_407409/Jenkinsfile2

33 lines
982 B
Plaintext
Raw Permalink Normal View History

2023-03-28 21:44:04 +02:00
node {
stage('Preparation') {
properties([
parameters([
string(
2023-03-29 13:32:25 +02:00
defaultValue: 'grzegorzgapiski',
2023-03-28 21:44:04 +02:00
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'
)
])
])
}
stage('Git clone') {
checkout([$class: 'GitSCM', branches: [[name: '*/master']],
userRemoteConfigs: [[url: 'https://git.wmi.amu.edu.pl/s407409/ium_407409.git']]])
}
stage('Bash') {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh 'download_data'
}
2023-03-28 21:58:40 +02:00
2023-03-28 22:06:54 +02:00
archiveArtifacts artifacts: 'data.dev, data.test, data.train'
2023-03-28 21:44:04 +02:00
}
}