Add missing file path triggers to maven stage jobs 20/15520/5
authorLott, Christopher (cl778h) <cl778h@att.com>
Sat, 4 May 2019 10:59:42 +0000 (06:59 -0400)
committerLott, Christopher (cl778h) <cl778h@att.com>
Sat, 4 May 2019 14:37:29 +0000 (10:37 -0400)
Add missing config for triggering on file paths to maven stage macros and
templates, namely gerrit_trigger_file_paths and github_included_regions,
to match the behavior of the maven verify/merge macros and templates.

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

index 48a688e..2a3d0c8 100644 (file)
@@ -393,6 +393,8 @@ directory is then used later to deploy to Nexus.
         (default: false)
 
     :gerrit_release_triggers: Override Gerrit Triggers.
+    :gerrit_trigger_file_paths: Override file paths which can be used to
+        filter which file modifications will trigger a build.
 
 Maven Stage for Docker
 ----------------------
index 349ad64..98bc714 100644 (file)
       - comment-added-contains-event:
           comment-contains-value: stage-release$
 
+    gerrit_trigger_file_paths:
+      - compare-type: ANT
+        pattern: '**'
+
+    # github_included_regions MUST match gerrit_trigger_file_paths
+    github_included_regions:
+      - '.*'
+
     #####################
     # Job Configuration #
     #####################
               branches:
                 - branch-compare-type: ANT
                   branch-pattern: '**/{branch}'
+              file-paths: '{obj:gerrit_trigger_file_paths}'
 
 - job-template:
     name: '{project-name}-maven-stage-{stream}'
           github-hooks: true
           white-list-target-branches:
             - '{branch}'
+          included-regions: '{obj:github_included_regions}'
 
 ##########################
 # Maven Stage for Docker #
               branches:
                 - branch-compare-type: ANT
                   branch-pattern: '**/{branch}'
+              file-paths: '{obj:gerrit_trigger_file_paths}'
 
 - job-template:
     name: '{project-name}-maven-docker-stage-{stream}'
           github-hooks: true
           white-list-target-branches:
             - '{branch}'
+          included-regions: '{obj:github_included_regions}'
 
 ###############
 # Maven Sonar #
diff --git a/releasenotes/notes/add-missing-trigger-file-paths-regions-stage-jobs-053a12a759a516b9.yaml b/releasenotes/notes/add-missing-trigger-file-paths-regions-stage-jobs-053a12a759a516b9.yaml
new file mode 100644 (file)
index 0000000..b832265
--- /dev/null
@@ -0,0 +1,6 @@
+---
+fixes:
+  - |
+    Add missing config for triggering on file paths to maven stage macros and templates,
+    namely gerrit_trigger_file_paths nad github_included_regions, to make those
+    macros and templates match the behavior of maven verify and maven merge.