branch select parametrization
This commit is contained in:
parent
272cd623ff
commit
8efece9077
@ -2,18 +2,16 @@ pipeline {
|
||||
agent {
|
||||
dockerfile true
|
||||
}
|
||||
parameters{
|
||||
string(
|
||||
defaultValue: 'master',
|
||||
description: 'training branch name',
|
||||
name: 'TRAINING_BRANCH'
|
||||
)
|
||||
password(
|
||||
defaultValue: '',
|
||||
description: 'JENKINS password',
|
||||
name: 'JENKINS_KEY'
|
||||
)
|
||||
|
||||
parameters{
|
||||
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
|
||||
buildSelector(
|
||||
defaultSelector: lastSuccessful(),
|
||||
description: 'Which build to use for copying artifacts',
|
||||
name: 'BUILD_SELECTOR'
|
||||
)
|
||||
}
|
||||
|
||||
stages {
|
||||
stage('Copy prev build artifact') {
|
||||
steps {
|
||||
@ -35,7 +33,7 @@ pipeline {
|
||||
stage('Copy') {
|
||||
steps {
|
||||
copyArtifacts projectName: 's444354-create-dataset'
|
||||
copyArtifacts projectName: 's444354-training/$TRAINING_BRANCH'
|
||||
copyArtifacts projectName: "s444417-training/${params.BRANCH}/", selector: buildParameter('BUILD_SELECTOR'), optional: true
|
||||
sh 'python3 ./evaluation.py'
|
||||
archiveArtifacts 'eval.csv, metrics.png'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user