Hard code release job compare pattern. 02/16602/6
authorAric Gardner <agardner@linuxfoundation.org>
Mon, 19 Aug 2019 19:07:54 +0000 (15:07 -0400)
committerAric Gardner <agardner@linuxfoundation.org>
Mon, 19 Aug 2019 20:33:52 +0000 (16:33 -0400)
This change:
https://gerrit.acumos.org/r/c/ci-management/+/4979

The project section has:
gerrit_trigger_file_paths:
  - compare-type: REG_EXP
  pattern: '^((?!migrate-cms-to-cds|\/COMMIT_MSG).)*$'

This is overwriting the default parameters of this job.

gerrit_trigger_file_paths:
  - compare-type: REG_EXP
    pattern: "releases/*.yaml"

I belive I should hard code this value so that this
does not happen.

Pattern going forward will actually support
pattern: '(releases\/.*\.yaml|\.releases\/.*\.yaml)'

I will update 16470 and hard code as well, if this is
merged.

ISSUE: RELENG-2316
Signed-off-by: Aric Gardner <agardner@linuxfoundation.org>
Change-Id: Ib520672a548f34762c723972152abea898cd98a8

jjb/lf-release-jobs.yaml
releasenotes/notes/lf-release-jobs-843a574d66df6263.yaml [new file with mode: 0644]

index 328c65a..657c701 100644 (file)
 - lf_release_common: &lf_release_common
     name: lf-release-common
 
-    ######################
-    # Default parameters #
-    ######################
-
-    gerrit_trigger_file_paths:
-      - compare-type: ANT
-        pattern: "releases/*.yaml"
-
     #####################
     # Job Configuration #
     #####################
               branches:
                 - branch-compare-type: "ANT"
                   branch-pattern: "**"
-              file-paths: "{obj:gerrit_trigger_file_paths}"
+              file-paths:
+                - compare-type: ANT
+                  pattern: "releases/*.yaml"
           skip-vote:
             successful: "{gerrit-skip-vote}"
             failed: "{gerrit-skip-vote}"
               branches:
                 - branch-compare-type: "ANT"
                   branch-pattern: "**"
-              file-paths: "{obj:gerrit_trigger_file_paths}"
+              file-paths:
+                - compare-type: ANT
+                  pattern: "releases/*.yaml"
diff --git a/releasenotes/notes/lf-release-jobs-843a574d66df6263.yaml b/releasenotes/notes/lf-release-jobs-843a574d66df6263.yaml
new file mode 100644 (file)
index 0000000..383c7d7
--- /dev/null
@@ -0,0 +1,7 @@
+---
+fixes:
+  - |
+    Project job sections that define gerrit_trigger_file_paths
+    are overriding ones set in Default parameters of
+    lf_release_common
+    Hard Code gerrit_trigger_file_paths to fix this.