diff options
author | MatthewLi <matthew.lijun@huawei.com> | 2017-05-15 23:05:12 -0400 |
---|---|---|
committer | MatthewLi <matthew.lijun@huawei.com> | 2017-05-16 02:48:26 -0400 |
commit | 96064751495ebf0cec8ffe30507bc6b80893fc1c (patch) | |
tree | 8faa6088264c7743c50956fe19d0b4b5ca80e8bb /jjb/compass4nfv | |
parent | 58576a78ba7f7f65722b99692ff5ef3d94b2c41c (diff) |
dovetail: conditional steps to run against specific scenarios
JIRA: DOVETAIL-432
1, the community CI resource is limited, for dovetail CI job,
there's no need to run against all scenarios, by now,
nosdn-nofeature-ha odl_l2-bgpvpn-ha odl_l2-nofeature-ha is enough.
2, jenkins conditional plugin will be used.
plugin should be installed
https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin
3, take compass as an example to see if it works
Change-Id: Ib23835cbf8801c36e35e088cd0d8bf2d6380e81a
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
Diffstat (limited to 'jjb/compass4nfv')
-rw-r--r-- | jjb/compass4nfv/compass-ci-jobs.yml | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/jjb/compass4nfv/compass-ci-jobs.yml b/jjb/compass4nfv/compass-ci-jobs.yml index 61845acdf..7cd73484c 100644 --- a/jjb/compass4nfv/compass-ci-jobs.yml +++ b/jjb/compass4nfv/compass-ci-jobs.yml @@ -157,19 +157,25 @@ build-step-failure-threshold: 'never' failure-threshold: 'never' unstable-threshold: 'FAILURE' - #dovetail only master by now, not sync with A/B/C branches - #here the stream means the SUT stream, dovetail stream is defined in its own job - - trigger-builds: - - project: 'dovetail-compass-{pod}-proposed_tests-{stream}' - current-parameters: false - predefined-parameters: - DEPLOY_SCENARIO={scenario} - block: true - same-node: true - block-thresholds: - build-step-failure-threshold: 'never' - failure-threshold: 'never' - unstable-threshold: 'FAILURE' + # dovetail only master by now, not sync with A/B/C branches + # here the stream means the SUT stream, dovetail stream is defined in its own job + # only run on os-(nosdn|odl_l2)-(nofeature|bgpvpn)-ha scenario + - conditional-step: + condition-kind: regex-match + regex: os-(nosdn|odl_l2)-(nofeature|bgpvpn)-ha + label: ${scenario} + steps: + - trigger-builds: + - project: 'dovetail-compass-{pod}-proposed_tests-{stream}' + current-parameters: false + predefined-parameters: + DEPLOY_SCENARIO={scenario} + block: true + same-node: true + block-thresholds: + build-step-failure-threshold: 'never' + failure-threshold: 'never' + unstable-threshold: 'FAILURE' - job-template: name: 'compass-deploy-{pod}-daily-{stream}' |