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 {
} }
} }
} }
} stage('Archive dataset and run training') {
post { steps {
always { archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
archiveArtifacts artifacts: 'data/*', build job: 's444409-training/main/'
onlyIfSuccessful: true }
} }
} }
} }

View File

@ -20,16 +20,22 @@ pipeline {
} }
stages { stages {
stage('Run data stats') { stage('Get arifacts') {
steps { 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 { post {
always { always {
archiveArtifacts artifacts: 'data/*', archiveArtifacts artifacts: 'model_out',
onlyIfSuccessful: true onlyIfSuccessful: true
} }
} }