Split container build and execution
All checks were successful
s444409-training/pipeline/head This commit looks good

This commit is contained in:
Marcin Kostrzewski 2022-05-05 21:40:34 +02:00
parent 4128882975
commit bdaacef8b9
2 changed files with 26 additions and 10 deletions

View File

@ -20,17 +20,11 @@ pipeline {
}
stages {
stage('Run data stats') {
stage('Archive dataset and run training') {
steps {
sh "python power_plant_data_stats.py"
archiveArtifacts artifacts: 'data/*', onlyIfSuccessful: true
build job: 's444409-training/main/'
}
}
}
post {
always {
archiveArtifacts artifacts: 'data/*',
onlyIfSuccessful: true
}
}
}

22
Jenkinsfile-train Normal file
View File

@ -0,0 +1,22 @@
pipeline {
agent {
docker {
image 's444409-create-dataset'
}
}
stages {
stage('Train model') {
steps {
sh "python train_model.py"
}
}
}
post {
always {
archiveArtifacts artifacts: 'model_out',
onlyIfSuccessful: true
}
}
}