ium_444498/Jenkinsfile
Wirusik 8780f35c2f
All checks were successful
s444498-evaluation/pipeline/head This commit looks good
s444498-training/pipeline/head This commit looks good
evaluate with jenkins
2022-05-08 20:48:57 +02:00

42 lines
1.1 KiB
Groovy

pipeline {
agent {
dockerfile {
additionalBuildArgs '-t s444498-init-datasets'
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
}
}
parameters {
string (
defaultValue: 'wirus006',
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'
)
}
options {
copyArtifactPermission('s444498-training');
}
stages {
stage('Init datasets') {
steps {
sh 'python3 init.py'
}
}
stage('Archive datasets') {
steps {
archiveArtifacts artifacts: 'atp_test.csv, atp_dev.csv, atp_train.csv', onlyIfSuccessful: true
}
}
stage('Run training job') {
steps {
build job: "s444498-training/master"
}
}
}
}