Copy artifacts to train other branches
This commit is contained in:
parent
1a44512224
commit
b6f47e9fef
@ -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}")]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user