Add missing file-based triggers to docker templates 99/15799/4 v0.38.2
authorLott, Christopher (cl778h) <cl778h@att.com>
Sat, 1 Jun 2019 11:25:27 +0000 (07:25 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Sat, 1 Jun 2019 17:35:25 +0000 (13:35 -0400)
Includes gerrit_trigger_file_paths and github_included_regions.
In documention: add github_included_regions parameter and
correct gerrit_verify_triggers to gerrit_merge_triggers.

Change-Id: If1dd342d9fe8591028cd1fabcb7c830e41df2fe5
Signed-off-by: Lott, Christopher (cl778h) <cl778h@att.com>
docs/jjb/lf-docker-jobs.rst
jjb/lf-docker-jobs.yaml
releasenotes/notes/add-missing-trigger-file-paths-regions-docker-jobs-164b23b860b627c0.yaml [new file with mode: 0644]

index 05a0e3c..fd23195 100644 (file)
@@ -80,8 +80,12 @@ Executes a docker build task.
         (default: 10)
 
     :gerrit_verify_triggers: Override Gerrit Triggers.
-    :gerrit_trigger_file_paths: Override file paths which can be used to
-        filter which file modifications will trigger a build.
+    :gerrit_trigger_file_paths: Override Gerrit file paths which can be
+        used to filter which file modifications will trigger a build.
+    :github_included_regions: Override Github file paths which can be
+        used to filter which file modifications will trigger a build;
+        must match parameter gerrit_trigger_file_paths
+
 
 container-tag.yaml example:
 
@@ -135,9 +139,12 @@ Executes a docker build task and publishes the resulting images to a specified D
     :submodule-timeout: Timeout (in minutes) for checkout operation.
         (default: 10)
 
-    :gerrit_verify_triggers: Override Gerrit Triggers.
-    :gerrit_trigger_file_paths: Override file paths which can be used to
-        filter which file modifications will trigger a build.
+    :gerrit_merge_triggers: Override Gerrit Triggers.
+    :gerrit_trigger_file_paths: Override Gerrit file paths which can be
+        used to filter which file modifications will trigger a build.
+    :github_included_regions: Override Github file paths which can be
+        used to filter which file modifications will trigger a build;
+        must match parameter gerrit_trigger_file_paths
 
 container-tag.yaml example:
 
index 9b8b731..ec870b6 100644 (file)
       - comment-added-contains-event:
           comment-contains-value: '^Patch Set[ ]+[0-9]+:([ ]+|[\n]+)(recheck|reverify)$'
 
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: '.*'
+
+    # github_included_regions MUST match gerrit_trigger_file_paths
+    github_included_regions:
+      - '.*'
+
     builders:
       - lf-infra-pre-build
       - lf-infra-docker-login:
       - comment-added-contains-event:
           comment-contains-value: remerge$
 
+    gerrit_trigger_file_paths:
+      - compare-type: REG_EXP
+        pattern: '.*'
+
+    # github_included_regions MUST match gerrit_trigger_file_paths
+    github_included_regions:
+      - '.*'
+
     builders:
       - lf-infra-pre-build
       - lf-infra-docker-login:
               branches:
                 - branch-compare-type: ANT
                   branch-pattern: '**/{branch}'
+              file-paths: '{obj:gerrit_trigger_file_paths}'
 
 - job-template:
     name: '{project-name}-docker-verify-{stream}'
               branches:
                 - branch-compare-type: ANT
                   branch-pattern: '**/{branch}'
+              file-paths: '{obj:gerrit_trigger_file_paths}'
 
 - job-template:
     name: '{project-name}-docker-merge-{stream}'
diff --git a/releasenotes/notes/add-missing-trigger-file-paths-regions-docker-jobs-164b23b860b627c0.yaml b/releasenotes/notes/add-missing-trigger-file-paths-regions-docker-jobs-164b23b860b627c0.yaml
new file mode 100644 (file)
index 0000000..e6685aa
--- /dev/null
@@ -0,0 +1,6 @@
+---
+fixes:
+  - |
+    Add missing config for triggering on file paths to docker macros and templates,
+    namely gerrit_trigger_file_paths and github_included_regions, to make the verify
+    and merge macros and templates match the behavior of other jobs.