Make custom helm verify and merge triggers
Issue-ID: CIMAN-164
Change-Id: Idf308e2440742def006efefe9478058449543590
Signed-off-by: Jeremy Phelps <jphelps@linuxfoundation.org>
diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml
index 55711f0..d32e53d 100644
--- a/jjb/global-macros.yaml
+++ b/jjb/global-macros.yaml
@@ -392,6 +392,48 @@
pattern: '{files}'
- trigger:
+ name: gerrit-trigger-helm-patch-submitted
+ triggers:
+ - gerrit:
+ server-name: '{server}'
+ trigger-on:
+ - patchset-created-event:
+ exclude-drafts: 'false'
+ exclude-trivial-rebase: 'false'
+ exclude-no-code-change: 'false'
+ - draft-published-event
+ - comment-added-contains-event:
+ comment-contains-value: '^verify-helm$'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+ file-paths:
+ - compare-type: 'ANT'
+ pattern: '{files}'
+
+- trigger:
+ name: gerrit-trigger-helm-patch-merged
+ triggers:
+ - gerrit:
+ server-name: '{server}'
+ trigger-on:
+ - change-merged-event
+ - comment-added-contains-event:
+ comment-contains-value: '^remerge-helm$'
+ projects:
+ - project-compare-type: 'ANT'
+ project-pattern: '{project}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+ file-paths:
+ - compare-type: 'ANT'
+ pattern: '{files}'
+
+- trigger:
name: gerrit-trigger-release-manually
triggers:
- gerrit:
diff --git a/jjb/global-templates-helm.yaml b/jjb/global-templates-helm.yaml
index d7cc056..d412d9b 100644
--- a/jjb/global-templates-helm.yaml
+++ b/jjb/global-templates-helm.yaml
@@ -59,16 +59,12 @@
submodule-recursive: '{submodule-recursive}'
triggers:
- - gerrit-trigger-patch-submitted:
+ - gerrit-trigger-helm-patch-submitted:
status-context: '{project}-Helm-Verify'
server: '{server-name}'
project: '{project}'
branch: '{branch}'
files: '{files}'
- - gerrit:
- trigger-on:
- - comment-added-contains-event:
- comment-contains-value: '^verify-helm$'
builders:
- shell: '{obj:pre_build_script}'
@@ -87,17 +83,11 @@
submodule-recursive: '{submodule-recursive}'
triggers:
- - gerrit-trigger-patch-merged:
+ - gerrit-trigger-helm-patch-merged:
server: '{server-name}'
project: '{project}'
branch: '{branch}'
files: '{files}'
- - pollscm:
- cron: ''
- - gerrit:
- trigger-on:
- - comment-added-contains-event:
- comment-contains-value: '^remerge-helm$'
builders:
- lf-provide-maven-settings: