--- # these parameters are used for infra related variables - parameter: name: infra-parameter parameters: - string: name: JJB_GIT_REPO default: https://git.openstack.org/openstack-infra/jenkins-job-builder description: OpenStack JJB repo - string: name: JJB_VERSION default: 2.2.1 description: OpenStack JJB version to install - matches to LFN JJB version # these parameters are used for setting the Gerrit Project on Nordix - parameter: name: project-parameter parameters: - string: name: PROJECT default: '{project}' description: JJB configured PROJECT parameter to identify a Nordix Gerrit project - string: name: BRANCH default: '{branch}' description: "JJB configured BRANCH parameter (e.g. master, nordix-dev)" # these parameters are used for streaming changes from various Gerrit Systems - parameter: name: nordix-gerrit-parameters parameters: - string: name: GERRIT_USER default: infra description: Non-interactive user to stream Gerrit Events on Nordix Gerrit - string: name: GIT_BASE_HTTPS default: https://gerrit.nordix.org/ description: HTTPS URL of Project Repo on Nordix Gerrit to clone repo - string: name: GIT_BASE_SSH default: ssh://$GERRIT_USER@gerrit.nordix.org:29418/ description: HTTPS URL of Project Repo on Nordix Gerrit to clone repo - parameter: name: onap-gerrit-parameters parameters: - string: name: GERRIT_USER default: nordix description: Non-interactive user to stream Gerrit Events on ONAP Gerrit - string: name: GIT_BASE_HTTPS default: https://gerrit.onap.org/r/p/ description: HTTPS URL to Project Repo on ONAP Gerrit to clone repo - string: name: GIT_BASE_SSH default: ssh://$GERRIT_USER@gerrit.onap.org:29418/ description: SSH URL to Project Repo on ONAP Gerrit to clone repo # defaults for job build history - property: name: logrotate-default properties: - build-discarder: days-to-keep: 60 num-to-keep: 200 artifact-days-to-keep: 60 artifact-num-to-keep: 200 # defaults for SCM and Gerrit - scm: name: git-scm scm: - git: &git-scm-defaults url: '$GIT_BASE_HTTPS' branches: - 'origin/$BRANCH' timeout: 15 per-build-tag: false skip-tag: true shallow-clone: false use-author: false ignore-notify: false wipe-workspace: true prune: false - scm: name: git-scm-gerrit scm: - git: choosing-strategy: 'gerrit' refspec: '$GERRIT_REFSPEC' <<: *git-scm-defaults # triggers for Nordix and upstream Gerrits - trigger: name: nordix-gerrit-trigger-patchset-created triggers: - gerrit: server-name: 'Nordix Gerrit' trigger-on: - patchset-created-event: exclude-drafts: 'false' exclude-trivial-rebase: 'false' exclude-no-code-change: 'false' - draft-published-event - comment-added-contains-event: comment-contains-value: 'recheck' - comment-added-contains-event: comment-contains-value: 'reverify' projects: - project-compare-type: 'ANT' project-pattern: '{project}' branches: - branch-compare-type: 'ANT' branch-pattern: '**/{branch}' file-paths: - compare-type: 'ANT' pattern: '{files}' skip-vote: successful: false failed: false unstable: false notbuilt: false - trigger: name: nordix-gerrit-trigger-change-merged triggers: - gerrit: server-name: 'Nordix 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}'