diff options
-rw-r--r-- | jjb/global-macros.yaml | 18 | ||||
-rw-r--r-- | jjb/global-templates-java.yaml | 14 |
2 files changed, 31 insertions, 1 deletions
diff --git a/jjb/global-macros.yaml b/jjb/global-macros.yaml index f7e147297..460bb3ad4 100644 --- a/jjb/global-macros.yaml +++ b/jjb/global-macros.yaml @@ -311,6 +311,24 @@ - compare-type: 'ANT' pattern: '{files}' +- trigger: + name: gerrit-trigger-release-manually + triggers: + - gerrit: + server-name: '{server}' + trigger-on: + - comment-added-contains-event: + comment-contains-value: 'please release' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + file-paths: + - compare-type: 'ANT' + pattern: '**' + # WRAPPERS - wrapper: name: build-timeout diff --git a/jjb/global-templates-java.yaml b/jjb/global-templates-java.yaml index f080a4854..580df85b9 100644 --- a/jjb/global-templates-java.yaml +++ b/jjb/global-templates-java.yaml @@ -216,6 +216,10 @@ triggers: # 11 AM UTC - timed: 'H 11 * * *' + - gerrit-trigger-release-manually: + server: '{server-name}' + project: '{project}' + branch: '{branch}' builders: - provide-maven-settings: @@ -283,6 +287,10 @@ triggers: # 11 AM UTC - timed: 'H 11 * * *' + - gerrit-trigger-release-manually: + server: '{server-name}' + project: '{project}' + branch: '{branch}' builders: - provide-maven-settings: @@ -446,8 +454,12 @@ build-timeout: '{build-timeout}' triggers: - # 11 AM UTC + # 12 AM UTC - timed: 'H 12 * * *' + - gerrit-trigger-release-manually: + server: '{server-name}' + project: '{project}' + branch: '{branch}' builders: |