dovetail run against different scenarios of compass 97/36497/3
authorMatthewLi <matthew.lijun@huawei.com>
Mon, 26 Jun 2017 08:26:24 +0000 (04:26 -0400)
committerMatthewLi <matthew.lijun@huawei.com>
Tue, 27 Jun 2017 07:36:34 +0000 (03:36 -0400)
JIRA: DOVETAIL-454

1, scenarios to run
https://wiki.opnfv.org/display/dovetail/Running+history+for+the+dovetail+tool
scenarios installer
os-nosdn-nofeature-ha    Apex
os-nosdn-kvm-ha     Apex
 os-odl_l3-fdio-ha   Apex
os-odl_l2-nofeature-ha  Compass
os-nosdn-nofeature-ha  Compass
os-onos-nofeature-ha  Compass
os-odl_l3-nofeature-ha  Compass
os-nosdn-ovs-ha  Fuel
os-odl_l2-bgpvpn-ha  Fuel
os-odl_l3-nofeature-ha  Fuel
os-nosdn-nofeature-ha Fuel
os-nosdn-kvm_ovs_dpdk-ha Fuel

2, time map(in order to reduce resource in CI)
MON, WED, FRI, SUN ----> latest
TUE, THU, SAT ---> cvp.0.1.0

Change-Id: If9c3fc514e4260530fc4f73299eedd9c1b022692
Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
jjb/compass4nfv/compass-ci-jobs.yml
jjb/dovetail/dovetail-ci-jobs.yml

index f4f49b6..a2c3c8b 100644 (file)
                 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
+        # only run on os-(nosdn|odl_l2|onos|odl_l3)-nofeature-ha scenario
+        # run against SUT master branch, dovetail docker image with latest tag
+        # run against SUT danube branch, dovetail docker image with latest tag(odd days)and cvp.X.X.X tag(even days)
         - conditional-step:
-            condition-kind: regex-match
-            regex: os-(nosdn|odl_l2)-(nofeature|bgpvpn)-ha
-            label: '{scenario}'
+            condition-kind: and
+            condition-operands:
+                - condition-kind: regex-match
+                  regex: danube
+                  label: '{stream}'
+                - condition-kind: regex-match
+                  regex: os-(nosdn|odl_l2|onos|odl_l3)-nofeature-ha
+                  label: '{scenario}'
+                - condition-kind: day-of-week
+                  day-selector: select-days
+                  days:
+                      MON: true
+                      WED: true
+                      FRI: true
+                      SUN: true
             steps:
                 - trigger-builds:
-                    - project: 'dovetail-compass-{pod}-proposed_tests-{stream}'
+                    - project: 'dovetail-compass-{pod}-proposed_tests-master'
                       current-parameters: false
                       predefined-parameters:
                         DEPLOY_SCENARIO={scenario}
                         build-step-failure-threshold: 'never'
                         failure-threshold: 'never'
                         unstable-threshold: 'FAILURE'
+        - conditional-step:
+            condition-kind: and
+            condition-operands:
+                - condition-kind: regex-match
+                  regex: danube
+                  label: '{stream}'
+                - condition-kind: regex-match
+                  regex: os-(nosdn|odl_l2|onos|odl_l3)-nofeature-ha
+                  label: '{scenario}'
+                - condition-kind: day-of-week
+                  day-selector: select-days
+                  days:
+                      TUE: true
+                      THU: true
+                      SAT: true
+            steps:
+                - trigger-builds:
+                    - project: 'dovetail-compass-{pod}-proposed_tests-danube'
+                      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'
+        - conditional-step:
+            condition-kind: and
+            condition-operands:
+                - condition-kind: regex-match
+                  regex: os-(nosdn|odl_l2)-(nofeature|bgpvpn)-ha
+                  label: '{scenario}'
+                - condition-kind: regex-match
+                  regex: master
+                  label: '{stream}'
+            steps:
+                - trigger-builds:
+                    - project: 'dovetail-compass-{pod}-proposed_tests-master'
 
 - job-template:
     name: 'compass-deploy-{pod}-daily-{stream}'
index 682948d..9fdce31 100644 (file)
@@ -25,7 +25,7 @@
         branch: 'stable/{stream}'
         dovetail-branch: master
         gs-pathname: '/{stream}'
-        docker-tag: 'latest'
+        docker-tag: 'cvp.0.1.0'
 
 #-----------------------------------
 # POD, PLATFORM, AND BRANCH MAPPING