Copy artifacts to train other branches
All checks were successful
s444409-evaluation/pipeline/head This commit looks good
s444409-training/pipeline/head This commit looks good

This commit is contained in:
emkarcinos 2022-05-09 10:44:29 +02:00
parent 1a44512224
commit b6f47e9fef

View File

@ -27,6 +27,11 @@ pipeline {
} }
stages { stages {
stage('Get dataset from artifact') {
steps {
copyArtifacts projectName: 's444409-create-dataset', selector: lastSuccessful(), optional: true
}
}
stage('Train model') { stage('Train model') {
steps { steps {
sh "python train_model.py with 'epochs=${params.EPOCHS}' 'batch_size=${params.BATCHSIZE}'" sh "python train_model.py with 'epochs=${params.EPOCHS}' 'batch_size=${params.BATCHSIZE}'"
@ -36,7 +41,7 @@ pipeline {
steps { steps {
archiveArtifacts artifacts: 'model_out', onlyIfSuccessful: true archiveArtifacts artifacts: 'model_out', onlyIfSuccessful: true
archiveArtifacts artifacts: 'sacred_runs/**', onlyIfSuccessful: true archiveArtifacts artifacts: 'sacred_runs/**', onlyIfSuccessful: true
build job: "s444409-evaluation/${params.BRANCH}/" build job: "s444409-evaluation/${params.BRANCH}/", parameters: [string(name: 'BRANCH', value: "${params.BRANCH}")]
} }
} }
} }