2022-04-01 22:40:28 +02:00
|
|
|
pipeline {
|
|
|
|
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'
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
|
|
|
agent {
|
|
|
|
dockerfile {
|
2022-04-02 17:15:51 +02:00
|
|
|
additionalBuildArgs "--build-arg KAGGLE_USERNAME=${params.KAGGLE_USERNAME} --build-arg KAGGLE_KEY=${params.KAGGLE_KEY} -t s444409-create-dataset"
|
2022-04-01 22:40:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stages {
|
2022-05-05 21:29:59 +02:00
|
|
|
stage('Get arifacts') {
|
2022-04-01 22:40:28 +02:00
|
|
|
steps {
|
2022-05-05 21:29:59 +02:00
|
|
|
copyArtifacts fingerprintArtifacts: true, projectName: 's444409-create-dataset', selector: lastSuccessful()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
stage('Train model') {
|
|
|
|
steps {
|
|
|
|
sh "python train_model.py"
|
2022-04-01 22:40:28 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
post {
|
|
|
|
always {
|
2022-05-05 21:29:59 +02:00
|
|
|
archiveArtifacts artifacts: 'model_out',
|
2022-04-01 22:40:28 +02:00
|
|
|
onlyIfSuccessful: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|