Use archived dataset and trigger training
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
c8c7b24fb1
commit
3ba963864b
10
Jenkinsfile
vendored
10
Jenkinsfile
vendored
@ -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
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user