Copy artifacts to train other branches
This commit is contained in:
parent
1a44512224
commit
b6f47e9fef
@ -27,6 +27,11 @@ pipeline {
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Get dataset from artifact') {
|
||||
steps {
|
||||
copyArtifacts projectName: 's444409-create-dataset', selector: lastSuccessful(), optional: true
|
||||
}
|
||||
}
|
||||
stage('Train model') {
|
||||
steps {
|
||||
sh "python train_model.py with 'epochs=${params.EPOCHS}' 'batch_size=${params.BATCHSIZE}'"
|
||||
@ -36,7 +41,7 @@ pipeline {
|
||||
steps {
|
||||
archiveArtifacts artifacts: 'model_out', 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}")]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user