Consolidate CSIT wrappers into inttest-csit-common 46/77746/7
authorThanh Ha <thanh.ha@linuxfoundation.org>
Wed, 14 Nov 2018 01:47:33 +0000 (09:47 +0800)
committerThanh Ha <thanh.ha@linuxfoundation.org>
Thu, 29 Nov 2018 06:35:33 +0000 (14:35 +0800)
The same wrapper configuration is used by all templates so consolidate
it into the anchor for easier maintenance.

Change-Id: Ice7dd93bb9ec450fccc3ec140dead31770d6c570
Signed-off-by: Thanh Ha <thanh.ha@linuxfoundation.org>
jjb/integration/integration-templates.yaml

index c02b92d961366d1ab611d52f508afe6e71455e49..694bd47d25232d00b84cc174749415b0009e0fbb 100644 (file)
@@ -40,6 +40,7 @@
     #####################
 
     build-days-to-keep: 30
+    build-timeout: 360  # Time in minutes
     disable-job: false
 
     #####################
@@ -55,6 +56,9 @@
       - opendaylight-infra-properties:
           build-days-to-keep: '{build-days-to-keep}'
 
+    wrappers:
+      - opendaylight-infra-wrappers:
+          build-timeout: '{build-timeout}'
 
 #################
 # Job Templates #
           refspec: '$GERRIT_REFSPEC'
           branch: 'master'
 
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '{build-timeout}'
-
     triggers:
       - integration-trigger-patch-submitted:
           gerrit-server-name: '{gerrit-server-name}'
       - integration-csit-trigger:
           jobs: '{trigger-jobs}'
 
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '{build-timeout}'
-
     builders:
       - lf-infra-pre-build
       - integration-infra-stack:
           refspec: '$GERRIT_REFSPEC'
           branch: 'master'
 
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '{build-timeout}'
-
     triggers:
       - integration-trigger-patch-submitted:
           gerrit-server-name: '{gerrit-server-name}'
       - integration-csit-trigger:
           jobs: '{trigger-jobs}'
 
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '{build-timeout}'
-
     builders:
       - lf-infra-pre-build
       - integration-infra-stack:
           refspec: '$PATCHREFSPEC'
           branch: 'master'
 
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '{build-timeout}'
-
     builders:
       - lf-infra-pre-build
       - integration-infra-stack:
           refspec: '$PATCHREFSPEC'
           branch: 'master'
 
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '{build-timeout}'
-
     triggers:
       - timed: '{schedule}'
 
           refspec: '$PATCHREFSPEC'
           branch: 'master'
 
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '{build-timeout}'
-
     triggers:
       - timed: '{schedule}'
 
       - integration-distribution-scm:
           branch: '{branch}'
 
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '{build-timeout}'
-
     triggers:
       - gerrit:
           server-name: '{gerrit-server-name}'
           refspec: '$PATCHREFSPEC'
           branch: 'master'
 
-    wrappers:
-      - opendaylight-infra-wrappers:
-          build-timeout: '{build-timeout}'
-
     triggers:
       - timed: '{schedule}'