2022-05-08 17:12:22 +02:00
|
|
|
pipeline {
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
2022-05-08 20:13:10 +02:00
|
|
|
additionalBuildArgs '-t s444498-init-datasets'
|
2022-05-08 17:12:22 +02:00
|
|
|
args '-e KAGGLE_USERNAME=${params.KAGGLE_USERNAME} -e KAGGLE_KEY=${params.KAGGLE_KEY}'
|
|
|
|
}
|
|
|
|
}
|
2022-03-26 13:05:15 +01:00
|
|
|
parameters {
|
|
|
|
string (
|
|
|
|
defaultValue: 'wirus006',
|
|
|
|
description: 'Kaggle username',
|
|
|
|
name: 'KAGGLE_USERNAME',
|
|
|
|
trim: false
|
|
|
|
)
|
|
|
|
password (
|
2022-05-06 20:29:31 +02:00
|
|
|
defaultValue: '',
|
2022-03-26 13:05:15 +01:00
|
|
|
description: 'Kaggle token taken from kaggle.json file, as described in https://github.com/Kaggle/kaggle-api#api-credentials',
|
|
|
|
name: 'KAGGLE_KEY'
|
|
|
|
)
|
|
|
|
}
|
2022-05-08 17:12:22 +02:00
|
|
|
options {
|
|
|
|
copyArtifactPermission('s444498-training');
|
2022-05-06 20:29:31 +02:00
|
|
|
}
|
|
|
|
stages {
|
2022-05-08 17:12:22 +02:00
|
|
|
stage('Init datasets') {
|
|
|
|
steps {
|
|
|
|
sh 'python3 init.py'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Archive datasets') {
|
|
|
|
steps {
|
2022-05-08 20:13:10 +02:00
|
|
|
archiveArtifacts artifacts: 'atp_test.csv, atp_dev.csv, atp_train.csv', onlyIfSuccessful: true
|
2022-05-08 17:12:22 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage('Run training job') {
|
2022-03-26 11:59:53 +01:00
|
|
|
steps {
|
2022-05-08 17:12:22 +02:00
|
|
|
build job: "s444498-training/master"
|
2022-03-26 11:59:53 +01:00
|
|
|
}
|
|
|
|
}
|
2022-03-21 11:28:45 +01:00
|
|
|
}
|
2022-03-26 11:42:48 +01:00
|
|
|
}
|