Fix: Update release jobs triggers 59/72359/3
authorJessica Wagantall <jwagantall@linuxfoundation.org>
Thu, 9 Nov 2023 17:36:15 +0000 (09:36 -0800)
committerJessica Wagantall <jwagantall@linuxfoundation.org>
Thu, 9 Nov 2023 20:05:34 +0000 (12:05 -0800)
Currently, all active branches verify jobs are triggering
causing verify conflicts when projects are releasing more
than one branch simultaniously.
Update triggers to only trigger the branch in question.

Issue: RELENG-4979
Signed-off-by: Jessica Wagantall <jwagantall@linuxfoundation.org>
Change-Id: Ifff3470671df4b6d05d78575d809c1befa7056de

jjb/lf-release-jobs.yaml
releasenotes/notes/update-release-job-triggers-0346618a45d836eb.yaml [new file with mode: 0644]

index d736159..285e570 100644 (file)
               project-pattern: "{project}"
               branches:
                 - branch-compare-type: "ANT"
-                  branch-pattern: "**"
+                  branch-pattern: "**/{branch}"
               file-paths:
                 - compare-type: REG_EXP
                   pattern: '(releases\/.*\.yaml|\.releases\/.*\.yaml)'
               project-pattern: "{project}"
               branches:
                 - branch-compare-type: "ANT"
-                  branch-pattern: "**"
+                  branch-pattern: "**/{branch}"
               file-paths:
                 - compare-type: REG_EXP
                   pattern: '(releases\/.*\.yaml|\.releases\/.*\.yaml)'
               project-pattern: "{project}"
               branches:
                 - branch-compare-type: ANT
-                  branch-pattern: "**"
+                  branch-pattern: "**/{branch}"
               file-paths: "{obj:gerrit_release_trigger_file_paths}"
 
 - job-template:
               project-pattern: "{project}"
               branches:
                 - branch-compare-type: ANT
-                  branch-pattern: "**"
+                  branch-pattern: "**/{branch}"
               file-paths: "{obj:gerrit_release_trigger_file_paths}"
 
 - job-template:
               project-pattern: "{project}"
               branches:
                 - branch-compare-type: "ANT"
-                  branch-pattern: "**"
+                  branch-pattern: "**/{branch}"
               file-paths:
                 - compare-type: REG_EXP
                   pattern: '(releases\/packagecloud.*\.yaml|\.releases\/packagecloud.*\.yaml)'
               project-pattern: "{project}"
               branches:
                 - branch-compare-type: "ANT"
-                  branch-pattern: "**"
+                  branch-pattern: "**/{branch}"
               file-paths:
                 - compare-type: REG_EXP
                   pattern: '(releases\/packagecloud.*\.yaml|\.releases\/packagecloud.*\.yaml)'
diff --git a/releasenotes/notes/update-release-job-triggers-0346618a45d836eb.yaml b/releasenotes/notes/update-release-job-triggers-0346618a45d836eb.yaml
new file mode 100644 (file)
index 0000000..1125807
--- /dev/null
@@ -0,0 +1,6 @@
+---
+fixes:
+  - |
+    Verify and merge release jobs need to be trigger for only the branch in question.
+    Currently, all active branches verify jobs are triggering causing verify conflicts
+    when projects are releasing more than one branch simultaniously.