Add infra-wrappers-docker-build 59/56659/2
authorgwu <gary.i.wu@huawei.com>
Tue, 17 Jul 2018 21:12:09 +0000 (14:12 -0700)
committergwu <gary.i.wu@huawei.com>
Tue, 17 Jul 2018 21:15:20 +0000 (14:15 -0700)
Refactor infra-wrappers config for docker builds for
use by other docker build job templates

Change-Id: I6b72ecea28e24b809627b97fa998f930a63c65f4
Issue-ID: INT-588
Signed-off-by: gwu <gary.i.wu@huawei.com>
jjb/global-macros.yaml
jjb/global-templates-python.yaml

index abf7a83..1f751da 100644 (file)
             - 'onap-jenkins-ssh'
       - openstack:
           single-use: true
+
+- wrapper:
+    # This wrapper is used for docker build jobs to use the dedicated docker
+    # build VM and turn off OpenStack single-use
+    name: infra-wrappers-docker-build
+    wrappers:
+      - timestamps
+      - timeout:
+          type: absolute
+          timeout: '{build-timeout}'
+          timeout-var: 'BUILD_TIMEOUT'
+          fail: true
+      - ssh-agent-credentials:
+          users:
+            - 'onap-jenkins-ssh'
+      - openstack:
+          single-use: false
index 24dba87..98312bb 100644 (file)
           checkout-dir: '{checkout-dir3}'
 
     wrappers:
-      - timestamps
-      - timeout:
-          type: absolute
-          timeout: '{build-timeout}'
-          timeout-var: 'BUILD_TIMEOUT'
-          fail: true
-      - ssh-agent-credentials:
-          users:
-            - 'onap-jenkins-ssh'
-      - openstack:
-          single-use: false
+      - infra-wrappers-docker-build:
+          build-timeout: '{build-timeout}'
 
     triggers:
       - timed: '@daily'