Use archived dataset and trigger training
All checks were successful
s444409-training/pipeline/head This commit looks good

This commit is contained in:
Marcin Kostrzewski 2022-05-05 21:29:59 +02:00
parent c8c7b24fb1
commit 3ba963864b
2 changed files with 14 additions and 8 deletions

10
Jenkinsfile vendored
View File

@ -28,11 +28,11 @@ pipeline {
}
}
}
}
post {
always {
archiveArtifacts artifacts: 'data/*',
onlyIfSuccessful: true
stage('Archive dataset and run training') {
steps {
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
build job: 's444409-training/main/'
}
}
}
}

View File

@ -20,16 +20,22 @@ pipeline {
}
stages {
stage('Run data stats') {
stage('Get arifacts') {
steps {
sh "python power_plant_data_stats.py"
copyArtifacts fingerprintArtifacts: true, projectName: 's444409-create-dataset', selector: lastSuccessful()
}
}
stage('Train model') {
steps {
sh "python train_model.py"
}
}
}
post {
always {
archiveArtifacts artifacts: 'data/*',
archiveArtifacts artifacts: 'model_out',
onlyIfSuccessful: true
}
}