Update ci-management submodules recursively 53/15053/1
authorEric Ball <eball@linuxfoundation.org>
Fri, 28 Sep 2018 20:08:13 +0000 (13:08 -0700)
committerEric Ball <eball@linuxfoundation.org>
Fri, 28 Sep 2018 20:45:18 +0000 (13:45 -0700)
To enable compatibility with global-jjb, the scm needs to update
submodules recursively. Adding the param to the old scm would
require changing every reference to that object, so a new scm was
created.

Change-Id: Ib514d06891f50a24bb2f38449b5b094db602f7e6
Signed-off-by: Eric Ball <eball@linuxfoundation.org>
jjb/ci-management/ci-management-jobs.yaml
jjb/global-macros.yaml

index cef4c9b..0139f16 100644 (file)
           project: '{project}'
 
     scm:
-      - gerrit-trigger-scm:
+      - gerrit-trigger-scm-recursive:
           credentials-id: 'jenkins-gerrit-credentials'
           refspec: '$GERRIT_REFSPEC'
           choosing-strategy: 'gerrit'
+          submodule-recursive: true
 
     wrappers:
       - fdio-infra-wrappers:
           project: '{project}'
 
     scm:
-      - gerrit-trigger-scm:
+      - gerrit-trigger-scm-recursive:
           credentials-id: 'jenkins-gerrit-credentials'
-          refspec: ''
-          choosing-strategy: 'default'
+          refspec: '$GERRIT_REFSPEC'
+          choosing-strategy: 'gerrit'
+          submodule-recursive: true
 
     wrappers:
       - fdio-infra-wrappers:
           branches:
             - '$GERRIT_BRANCH'
           choosing-strategy: 'gerrit'
+          submodule-recursive: true
 
     wrappers:
       - fdio-infra-wrappers:
           branches:
             - '$GERRIT_BRANCH'
           choosing-strategy: 'default'
+          submodule-recursive: true
 
     wrappers:
       - fdio-infra-wrappers:
index 8bca2e0..92c881f 100644 (file)
             skip-tag: true
             choosing-strategy: '{choosing-strategy}'
 
+- scm:
+    name: gerrit-trigger-scm-recursive
+    scm:
+        - git:
+            credentials-id: '{credentials-id}'
+            url: '$GIT_BASE'
+            refspec: '{refspec}'
+            branches:
+                - 'origin/$GERRIT_BRANCH'
+            skip-tag: true
+            choosing-strategy: '{choosing-strategy}'
+            submodule:
+              recursive: '{submodule-recursive}'
+
 - scm:
     name: zuul-trigger-scm
     scm: