X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fglobal%2Fjjb-macros.yaml;h=1a2f8d2b5a0f74c9fec2d05c2fdf6e41dd333fa2;hb=refs%2Fchanges%2F91%2F1291%2F1;hp=b96a205b0fbbf082b06da1588095161cda20b28a;hpb=1e7b337036566297daf0f899a6bf4d6631491f3a;p=infra%2Fcicd.git diff --git a/jjb/global/jjb-macros.yaml b/jjb/global/jjb-macros.yaml index b96a205b..1a2f8d2b 100644 --- a/jjb/global/jjb-macros.yaml +++ b/jjb/global/jjb-macros.yaml @@ -74,6 +74,22 @@ default: ssh://$GERRIT_USER@gerrit.acumos.org:29418 description: SSH URL to Project Repo on Acumos Gerrit to clone repo +- parameter: + name: odl-gerrit-parameters + parameters: + - string: + name: GERRIT_USER + default: nordix + description: Non-interactive user to stream Gerrit Events on ODL Gerrit + - string: + name: GIT_BASE_HTTPS + default: https://git.opendaylight.org/gerrit + description: HTTPS URL to Project Repo on OODL Gerrit to clone repo + - string: + name: GIT_BASE_SSH + default: ssh://$GERRIT_USER@git.opendaylight.org:29418 + description: SSH URL to Project Repo on ODL Gerrit to clone repo + # defaults for job build history - property: name: logrotate-default @@ -235,6 +251,27 @@ silent: true silent-start: true +# triggers for ODL Gerrit +- trigger: + name: odl-gerrit-trigger-change-merged + triggers: + - gerrit: + server-name: 'ODL Gerrit' + trigger-on: + - change-merged-event + - comment-added-contains-event: + comment-contains-value: 'remerge' + projects: + - project-compare-type: 'ANT' + project-pattern: '{project}' + branches: + - branch-compare-type: 'ANT' + branch-pattern: '**/{branch}' + file-paths: + - compare-type: 'ANT' + pattern: '{files}' + silent: true + silent-start: true # wrappers to use for jobs - wrapper: