From ad1bcaee69eb563162a8939cbc6c4bb68d27791e Mon Sep 17 00:00:00 2001 From: Trevor Bramwell Date: Tue, 31 Oct 2017 09:53:08 -0700 Subject: Add Gerrit Trigger on Tag Creation We should be able to capture a tag creation event by triggering on 'ref-updated' but looking specifically at the 'refs/tags/' branch prefix. Though this will trigger a build against a specific tag, scripts will still need to examine the GERRIT_REFSPEC to determine the tag name. Change-Id: Ic18a3e11530fb71735431240f93d2074dacf4e1c Signed-off-by: Trevor Bramwell --- jjb/global/releng-macros.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'jjb') diff --git a/jjb/global/releng-macros.yml b/jjb/global/releng-macros.yml index 59415f5ca..e00047ba0 100644 --- a/jjb/global/releng-macros.yml +++ b/jjb/global/releng-macros.yml @@ -135,6 +135,20 @@ - compare-type: 'ANT' pattern: '{files}' +- trigger: + name: gerrit-trigger-tag-created + triggers: + - gerrit: + server-name: 'gerrit.opnfv.org' + trigger-on: + - ref-updated + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: 'refs/tags/**' + - trigger: name: 'experimental' triggers: -- cgit 1.2.3-korg