ium_444409/Jenkinsfile
Marcin Kostrzewski 3ba963864b
All checks were successful
s444409-training/pipeline/head This commit looks good
Use archived dataset and trigger training
2022-05-05 21:29:59 +02:00

39 lines
1.2 KiB
Groovy

pipeline {
agent any
parameters {
string(
defaultValue: 'marcinkostrzewski',
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('Install dependencies') {
steps {
sh "pip install --user -r requirements.txt"
}
}
stage('Fetch and split dataset') {
steps {
withEnv(["KAGGLE_USERNAME=${params.KAGGLE_USERNAME}",
"KAGGLE_KEY=${params.KAGGLE_KEY}" ]) {
sh "chmod u+x ./download_dataset.sh"
sh "./download_dataset.sh"
}
}
}
stage('Archive dataset and run training') {
steps {
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
build job: 's444409-training/main/'
}
}
}
}