ium_407409/Jenkinsfile2

33 lines
982 B
Plaintext

node {
stage('Preparation') {
properties([
parameters([
string(
defaultValue: 'grzegorzgapiski',
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'
}
archiveArtifacts artifacts: 'data.dev, data.test, data.train'
}
}