Add anchors in ci yaml files 89/65089/2
authorCédric Ollivier <cedric.ollivier@orange.com>
Tue, 13 Nov 2018 21:35:37 +0000 (22:35 +0100)
committerCédric Ollivier <cedric.ollivier@orange.com>
Tue, 13 Nov 2018 21:58:50 +0000 (22:58 +0100)
It eases foctorizing between releng (1 multijob only) and functest
jjbs.

Change-Id: I72deb86d155a1da7e0d8bf0f76992e7b6dd6cfad
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
(cherry picked from commit 891e997c96fc468494cef126e8b99cc0523c6acf)

ci/daily.yaml
ci/gate.yaml
ci/run.yaml

index 89b404f..29db83d 100644 (file)
@@ -5,7 +5,7 @@
       - shell: docker pull {repo}/functest-{container}:{tag}
 
 - project:
-    name: '{repo}-functest-{container}-{tag}-pull'
+    name: repo-functest-container-tag-pull
     container:
       - healthcheck
       - smoke
     jobs:
       - '{repo}-functest-{container}-{tag}-pull'
 
+- functest-pulljobs: &functest-pulljobs
+    name: 'functest-pulljobs'
+    projects:
+      - name: '{repo}-functest-healthcheck-{tag}-pull'
+      - name: '{repo}-functest-smoke-{tag}-pull'
+      - name: '{repo}-functest-benchmarking-{tag}-pull'
+      - name: '{repo}-functest-components-{tag}-pull'
+      - name: '{repo}-functest-vnf-{tag}-pull'
+      - name: '{repo}-functest-features-{tag}-pull'
+
 - job-template:
     name: '{repo}-functest-{tag}-pull'
     project-type: multijob
     builders:
       - multijob:
           name: pull all containers
-          projects:
-            - name: '{repo}-functest-healthcheck-{tag}-pull'
-            - name: '{repo}-functest-smoke-{tag}-pull'
-            - name: '{repo}-functest-benchmarking-{tag}-pull'
-            - name: '{repo}-functest-components-{tag}-pull'
-            - name: '{repo}-functest-vnf-{tag}-pull'
-            - name: '{repo}-functest-features-{tag}-pull'
+          <<: *functest-pulljobs
 
 - project:
-    name: '{repo}-functest-{tag}-pull'
+    name: repo-functest-tag-pull
     jobs:
       - '{repo}-functest-{tag}-pull'
 
@@ -57,6 +61,6 @@
             - name: '{repo}-functest-features-{tag}-run'
 
 - project:
-    name: '{repo}-functest-{tag}-daily'
+    name: repo-functest-tag-daily
     jobs:
       - '{repo}-functest-{tag}-daily'
index 1abfc67..58f1fd6 100644 (file)
@@ -33,7 +33,7 @@
             -t {repo}/functest-{container}:{tag} .
 
 - project:
-    name: '{repo}-functest-{container}-{tag}-build'
+    name: repo-functest-container-tag-build
     container:
       - core
       - tempest
@@ -78,7 +78,7 @@
               <<: *functest-projectparameters
 
 - project:
-    name: '{repo}-functest-{tag}-build'
+    name: repo-functest-tag-build
     jobs:
       - '{repo}-functest-{tag}-build'
 
             - name: '{repo}-functest-features-{tag}-run'
 
 - project:
-    name: '{repo}-functest-{tag}-gate'
+    name: repo-functest-tag-gate
     jobs:
       - '{repo}-functest-{tag}-gate'
index 5ab7320..971529f 100644 (file)
@@ -17,7 +17,7 @@
             {repo}/functest-{container}:{tag} run_tests -t {test}
 
 - project:
-    name: '{repo}-functest-healthcheck-{test}-{tag}-run'
+    name: repo-functest-healthcheck-test-tag-run
     container: healthcheck
     test:
       - connection_check
     jobs:
       - '{repo}-functest-{container}-{test}-{tag}-run'
 
+- functest-healthcheckjobs: &functest-healthcheckjobs
+    name: 'functest-healthcheckjobs'
+    projects:
+      - name: '{repo}-functest-healthcheck-connection_check-{tag}-run'
+      - name: '{repo}-functest-healthcheck-tenantnetwork1-{tag}-run'
+      - name: '{repo}-functest-healthcheck-tenantnetwork2-{tag}-run'
+      - name: '{repo}-functest-healthcheck-vmready1-{tag}-run'
+      - name: '{repo}-functest-healthcheck-vmready2-{tag}-run'
+      - name: '{repo}-functest-healthcheck-singlevm1-{tag}-run'
+      - name: '{repo}-functest-healthcheck-singlevm2-{tag}-run'
+      - name: '{repo}-functest-healthcheck-vping_ssh-{tag}-run'
+      - name: '{repo}-functest-healthcheck-vping_userdata-{tag}-run'
+      - name: '{repo}-functest-healthcheck-cinder_test-{tag}-run'
+      - name: '{repo}-functest-healthcheck-odl-{tag}-run'
+      - name: '{repo}-functest-healthcheck-api_check-{tag}-run'
+      - name: '{repo}-functest-healthcheck-snaps_health_check-{tag}-run'
+
 - job-template:
     name: '{repo}-functest-healthcheck-{tag}-run'
     project-type: multijob
     builders:
       - multijob:
           name: healthcheck
-          projects:
-            - name: '{repo}-functest-healthcheck-connection_check-{tag}-run'
-            - name: '{repo}-functest-healthcheck-tenantnetwork1-{tag}-run'
-            - name: '{repo}-functest-healthcheck-tenantnetwork2-{tag}-run'
-            - name: '{repo}-functest-healthcheck-vmready1-{tag}-run'
-            - name: '{repo}-functest-healthcheck-vmready2-{tag}-run'
-            - name: '{repo}-functest-healthcheck-singlevm1-{tag}-run'
-            - name: '{repo}-functest-healthcheck-singlevm2-{tag}-run'
-            - name: '{repo}-functest-healthcheck-vping_ssh-{tag}-run'
-            - name: '{repo}-functest-healthcheck-vping_userdata-{tag}-run'
-            - name: '{repo}-functest-healthcheck-cinder_test-{tag}-run'
-            - name: '{repo}-functest-healthcheck-odl-{tag}-run'
-            - name: '{repo}-functest-healthcheck-api_check-{tag}-run'
-            - name: '{repo}-functest-healthcheck-snaps_health_check-{tag}-run'
+          <<: *functest-healthcheckjobs
 
 - project:
-    name: '{repo}-functest-healthcheck-{tag}-run'
+    name: repo-functest-healthcheck-tag-run
     jobs:
       - '{repo}-functest-healthcheck-{tag}-run'
 
 - project:
-    name: '{repo}-functest-smoke-{test}-{tag}-run'
+    name: repo-functest-smoke-test-tag-run
     container: smoke
     test:
       - tempest_smoke
     jobs:
       - '{repo}-functest-{container}-{test}-{tag}-run'
 
+- functest-smokejobs: &functest-smokejobs
+    name: 'functest-smokejobs'
+    projects:
+      - name: '{repo}-functest-smoke-tempest_smoke-{tag}-run'
+      - name: '{repo}-functest-smoke-neutron-tempest-plugin-api-{tag}-run'
+      - name: '{repo}-functest-smoke-rally_sanity-{tag}-run'
+      - name: '{repo}-functest-smoke-rally_jobs-{tag}-run'
+      - name: '{repo}-functest-smoke-refstack_defcore-{tag}-run'
+      - name: '{repo}-functest-smoke-patrole-{tag}-run'
+      - name: '{repo}-functest-smoke-snaps_smoke-{tag}-run'
+      - name: '{repo}-functest-smoke-neutron_trunk-{tag}-run'
+      - name: '{repo}-functest-smoke-networking-bgpvpn-{tag}-run'
+      - name: '{repo}-functest-smoke-networking-sfc-{tag}-run'
+      - name: '{repo}-functest-smoke-barbican-{tag}-run'
+
 - job-template:
     name: '{repo}-functest-smoke-{tag}-run'
     project-type: multijob
     builders:
       - multijob:
           name: smoke
-          projects:
-            - name: '{repo}-functest-smoke-tempest_smoke-{tag}-run'
-            - name: '{repo}-functest-smoke-neutron-tempest-plugin-api-{tag}-run'
-            - name: '{repo}-functest-smoke-rally_sanity-{tag}-run'
-            - name: '{repo}-functest-smoke-rally_jobs-{tag}-run'
-            - name: '{repo}-functest-smoke-refstack_defcore-{tag}-run'
-            - name: '{repo}-functest-smoke-patrole-{tag}-run'
-            - name: '{repo}-functest-smoke-snaps_smoke-{tag}-run'
-            - name: '{repo}-functest-smoke-neutron_trunk-{tag}-run'
-            - name: '{repo}-functest-smoke-networking-bgpvpn-{tag}-run'
-            - name: '{repo}-functest-smoke-networking-sfc-{tag}-run'
-            - name: '{repo}-functest-smoke-barbican-{tag}-run'
+          <<: *functest-smokejobs
 
 - project:
-    name: '{repo}-functest-smoke-{tag}-run'
+    name: 'repo-functest-smoke-tag-run'
     jobs:
       - '{repo}-functest-smoke-{tag}-run'
 
 - project:
-    name: '{repo}-functest-benchmarking-{test}-{tag}-run'
+    name: 'repo-functest-benchmarking-test-tag-run'
     container: benchmarking
     test:
       - vmtp
     jobs:
       - '{repo}-functest-{container}-{test}-{tag}-run'
 
+- functest-benchmarkingjobs: &functest-benchmarkingjobs
+    name: 'functest-benchmarkingjobs'
+    projects:
+      - name: '{repo}-functest-benchmarking-vmtp-{tag}-run'
+      - name: '{repo}-functest-benchmarking-shaker-{tag}-run'
+
 - job-template:
     name: '{repo}-functest-benchmarking-{tag}-run'
     project-type: multijob
     builders:
       - multijob:
-          name: smoke
-          projects:
-            - name: '{repo}-functest-benchmarking-vmtp-{tag}-run'
-            - name: '{repo}-functest-benchmarking-shaker-{tag}-run'
+          name: benchmarking
+          <<: *functest-benchmarkingjobs
 
 - project:
-    name: '{repo}-functest-benchmarking-{tag}-run'
+    name: repo-functest-benchmarking-tag-run
     jobs:
       - '{repo}-functest-benchmarking-{tag}-run'
 
 - project:
-    name: '{repo}-functest-components-{test}-{tag}-run'
+    name: repo-functest-components-test-tag-run
     container: components
     test:
       - tempest_full
     jobs:
       - '{repo}-functest-{container}-{test}-{tag}-run'
 
+- functest-componentsjobs: &functest-componentsjobs
+    name: 'functest-componentsjobs'
+    projects:
+      - name: '{repo}-functest-components-tempest_full-{tag}-run'
+      - name: '{repo}-functest-components-tempest_scenario-{tag}-run'
+      - name: '{repo}-functest-components-rally_full-{tag}-run'
+
 - job-template:
     name: '{repo}-functest-components-{tag}-run'
     project-type: multijob
     builders:
       - multijob:
           name: components
-          projects:
-            - name: '{repo}-functest-components-tempest_full-{tag}-run'
-            - name: '{repo}-functest-components-tempest_scenario-{tag}-run'
-            - name: '{repo}-functest-components-rally_full-{tag}-run'
+          <<: *functest-componentsjobs
 
 - project:
-    name: '{repo}-functest-components-{tag}-run'
+    name: repo-functest-components-tag-run
     jobs:
       - '{repo}-functest-components-{tag}-run'
 
 - project:
-    name: '{repo}-functest-vnf-{test}-{tag}-run'
+    name: repo-functest-vnf-test-tag-run
     container: vnf
     test:
       - cloudify
     jobs:
       - '{repo}-functest-{container}-{test}-{tag}-run'
 
+- functest-vnfjobs: &functest-vnfjobs
+    name: 'functest-vnfjobs'
+    projects:
+      - name: '{repo}-functest-vnf-cloudify-{tag}-run'
+      - name: '{repo}-functest-vnf-cloudify_ims-{tag}-run'
+      - name: '{repo}-functest-vnf-heat_ims-{tag}-run'
+      - name: '{repo}-functest-vnf-vyos_vrouter-{tag}-run'
+      - name: '{repo}-functest-vnf-juju_epc-{tag}-run'
+
 - job-template:
     name: '{repo}-functest-vnf-{tag}-run'
     project-type: multijob
     builders:
       - multijob:
           name: vnf
-          projects:
-            - name: '{repo}-functest-vnf-cloudify-{tag}-run'
-            - name: '{repo}-functest-vnf-cloudify_ims-{tag}-run'
-            - name: '{repo}-functest-vnf-heat_ims-{tag}-run'
-            - name: '{repo}-functest-vnf-vyos_vrouter-{tag}-run'
-            - name: '{repo}-functest-vnf-juju_epc-{tag}-run'
+          <<: *functest-vnfjobs
 
 - project:
-    name: '{repo}-functest-vnf-{tag}-run'
+    name: 'repo-functest-vnf-tag-run'
     jobs:
       - '{repo}-functest-vnf-{tag}-run'
 
 - project:
-    name: '{repo}-functest-features-{test}-{tag}-run'
+    name: repo-functest-features-test-tag-run
     container: features
     test:
       - doctor-notification
     jobs:
       - '{repo}-functest-{container}-{test}-{tag}-run'
 
+- functest-featuresjobs: &functest-featuresjobs
+    name: 'functest-featuresjobs'
+    projects:
+      - name: '{repo}-functest-features-doctor-notification-{tag}-run'
+      - name: '{repo}-functest-features-bgpvpn-{tag}-run'
+      - name: '{repo}-functest-features-functest-odl-sfc-{tag}-run'
+      - name: '{repo}-functest-features-barometercollectd-{tag}-run'
+      - name: '{repo}-functest-features-vgpu-{tag}-run'
+      - name: '{repo}-functest-features-stor4nfv_os-{tag}-run'
+
 - job-template:
     name: '{repo}-functest-features-{tag}-run'
     project-type: multijob
     builders:
       - multijob:
           name: features
-          projects:
-            - name: '{repo}-functest-features-doctor-notification-{tag}-run'
-            - name: '{repo}-functest-features-bgpvpn-{tag}-run'
-            - name: '{repo}-functest-features-functest-odl-sfc-{tag}-run'
-            - name: '{repo}-functest-features-barometercollectd-{tag}-run'
-            - name: '{repo}-functest-features-vgpu-{tag}-run'
-            - name: '{repo}-functest-features-stor4nfv_os-{tag}-run'
+          <<: *functest-featuresjobs
 
 - project:
-    name: '{repo}-functest-features-{tag}-run'
+    name: repo-functest-features-tag-run
     jobs:
       - '{repo}-functest-features-{tag}-run'