added git parameter
Some checks failed
s434742-evaluation/pipeline/head There was a failure building this commit
s434742-training/pipeline/head This commit looks good

This commit is contained in:
patrycjalazna 2021-05-13 17:32:38 +02:00
parent 970f35ca35
commit a613604cb5

View File

@ -1,5 +1,7 @@
pipeline {
agent any
agent {
dockerfile true
}
parameters {
buildSelector(
@ -19,6 +21,9 @@ pipeline {
description: 'Which build to use for copying evaluation artifacts',
name: 'BUILD_SELECTOR_EVALUATION'
)
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'master', name: 'BRANCH', type: 'PT_BRANCH'
}
}
stages {
@ -29,7 +34,7 @@ pipeline {
{
copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-create-dataset', selector: buildParameter('BUILD_SELECTOR_DATASET'))
copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-training/master', selector: buildParameter('BUILD_SELECTOR_TRAINING'))
copyArtifacts(fingerprintArtifacts: true, projectName: 's434742-evaluation/master', selector: buildParameter('BUILD_SELECTOR_EVALUATION', optional=true))
copyArtifacts(fingerprintArtifacts: true, optional=true, projectName: 's434742-evaluation/master', selector: buildParameter('BUILD_SELECTOR_EVALUATION'))
}
}