X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fglobal%2Fjjb-macros.yaml;h=6a4d11ef8e8743869a9eeb4431e699d651580dbd;hb=c2e7ec34041521c499d31e1091e36f62e5379f1e;hp=7f71596e26a909ee1a8fcb51b981d3db92e495c1;hpb=c8dcf1c591156a27f450e52dbfc039c5ab4849aa;p=infra%2Fcicd.git diff --git a/jjb/global/jjb-macros.yaml b/jjb/global/jjb-macros.yaml index 7f71596e..6a4d11ef 100644 --- a/jjb/global/jjb-macros.yaml +++ b/jjb/global/jjb-macros.yaml @@ -106,6 +106,29 @@ default: ssh://$GERRIT_USER@review.opendev.org:29418 description: SSH URL to Project Repo on OpenDev Gerrit to clone repo +- parameter: + name: oransc-gerrit-parameters + parameters: + - string: + name: GERRIT_USER + default: nordix + description: Non-interactive user to stream Gerrit Events on ORAN-SC Gerrit + - string: + name: GIT_BASE_HTTPS + default: https://gerrit.o-ran-sc.org/r + description: HTTPS URL to Project Repo on ORAN-SC Gerrit to clone repo + - string: + name: GIT_BASE_SSH + default: ssh://$GERRIT_USER@gerrit.o-ran-sc.org:29418 + description: SSH URL to Project Repo on ORAN-SC Gerrit to clone repo + +# Verify job for Geode git tags to make sure there are in agreed format +- builder: + name: 'verify-geode-tag-macro' + builders: + - shell: + !include-raw: ./verify_geode_tag.sh + # defaults for job build history - property: name: logrotate-default @@ -359,6 +382,28 @@ silent: true silent-start: true +# triggers for ORANSC Gerrit +- trigger: + name: oransc-gerrit-trigger-change-merged + triggers: + - gerrit: + server-name: 'ORANSC 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: name: nordixinfra-jjb-creds-wrapper