X-Git-Url: https://gerrit.nordix.org/gitweb?a=blobdiff_plain;f=jjb%2Fglobal%2Fjjb-macros.yaml;h=c5cd27f8e0e41f75d8179c5d9e7e713f25f1e8b3;hb=ef57dbc59b1afc90cc82511c90acb9485cb0b108;hp=ef279bb69b9200c2fc3fa2535949246802505614;hpb=5addd511d92e0545481dc090bf6577d92c465812;p=infra%2Fcicd.git diff --git a/jjb/global/jjb-macros.yaml b/jjb/global/jjb-macros.yaml index ef279bb6..c5cd27f8 100644 --- a/jjb/global/jjb-macros.yaml +++ b/jjb/global/jjb-macros.yaml @@ -72,10 +72,11 @@ - scm: name: git-scm scm: - - git: &git-scm-defaults - url: '$GIT_BASE_HTTPS' + - git: + url: '$GIT_BASE_HTTPS/$PROJECT' branches: - - 'origin/$BRANCH' + - 'refs/heads/{branch}' + refspec: '{refspec}' timeout: 15 per-build-tag: false skip-tag: true @@ -84,14 +85,25 @@ ignore-notify: false wipe-workspace: true prune: false + choosing-strategy: 'default' - scm: name: git-scm-gerrit scm: - git: + url: '$GIT_BASE_HTTPS/$PROJECT' + branches: + - 'refs/heads/{branch}' + refspec: '{refspec}' + timeout: 15 + per-build-tag: false + skip-tag: true + shallow-clone: false + use-author: false + ignore-notify: false + wipe-workspace: true + prune: false choosing-strategy: 'gerrit' - refspec: '$GERRIT_REFSPEC' - <<: *git-scm-defaults # triggers for Nordix and upstream Gerrits - trigger: @@ -142,3 +154,13 @@ file-paths: - compare-type: 'ANT' pattern: '{files}' + +# wrappers to use for jobs +- wrapper: + name: nordixinfra-jjb-creds-wrapper + wrappers: + - credentials-binding: + - username-password-separated: + credential-id: nordixinfra-jjb-creds + username: JJB_USERNAME + password: JJB_USERTOKEN