Split container build and execution
All checks were successful
s444409-training/pipeline/head This commit looks good
All checks were successful
s444409-training/pipeline/head This commit looks good
This commit is contained in:
parent
4128882975
commit
bdaacef8b9
@ -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
22
Jenkinsfile-train
Normal 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
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user