name: git-scm
scm:
- git:
- credentials-id: '{credentials-id}'
+ credentials-id: 'opendaylight-jenkins-ssh'
url: '$GIT_BASE'
refspec: ''
branches:
name: git-scm-with-submodules
scm:
- git:
- credentials-id: '{credentials-id}'
+ credentials-id: 'opendaylight-jenkins-ssh'
url: '$GIT_BASE'
refspec: ''
branches:
name: gerrit-trigger-scm
scm:
- git:
- credentials-id: '{credentials-id}'
+ credentials-id: 'opendaylight-jenkins-ssh'
url: '$GIT_BASE'
refspec: '{refspec}'
branches:
- branch-compare-type: 'ANT'
branch-pattern: '**/{branch}'
+- trigger:
+ name: gerrit-trigger-relevant-patch-submitted
+ triggers:
+ - gerrit:
+ server-name: 'OpenDaylight'
+ trigger-on:
+ - patchset-created-event:
+ exclude-drafts: 'true'
+ exclude-trivial-rebase: 'false'
+ exclude-no-code-change: 'true'
+ - 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: '{name}'
+ branches:
+ - branch-compare-type: 'ANT'
+ branch-pattern: '**/{branch}'
+
- trigger:
name: gerrit-trigger-patch-merged
triggers:
unstable: true
fixed: true
send-to:
- - developers
- recipients
- publisher:
healthy: 50
unhealthy: 40
+- publisher:
+ name: archive-build
+ # To archive things the job will need to create a "archives" directory in
+ # the workspace and this macro will handle copying the contents of the
+ # archives directory.
+ # Also ensure that the workspace is cleaned up at the end of the build.
+ publishers:
+ - postbuildscript:
+ builders:
+ - shell: !include-raw: include-raw-deploy-archives.sh
+ - maven-target:
+ maven-version: '{maven-version}'
+ pom: '.archives/deploy-archives.xml'
+ goals: 'clean deploy -V -B -q -Dmaven.repo.local=/tmp/r'
+ settings: 'jenkins-log-archives-settings'
+ settings-type: cfp
+ global-settings: 'odl-global-settings'
+ global-settings-type: cfp
+ - description-setter:
+ regexp: '^Build logs: .*'
+ # Cleanup after ourselves
+ - wipe-org-opendaylight-repo
+ script-only-if-succeeded: False
+ script-only-if-failed: False
+ mark-unstable-if-failed: True
+ - workspace-cleanup:
+ fail-build: false
+
- builder:
name: wipe-org-opendaylight-repo
builders:
- shell: 'if [ -d /tmp/r/org/opendaylight ]; then rm -rf /tmp/r/org/opendaylight; fi'
+- builder:
+ name: wipe-local-maven-repo
+ builders:
+ - shell: 'if [ -d /tmp/r ]; then rm -rf /tmp/r; fi'
+
- builder:
name: jacoco-nojava-workaround
builders:
name: releng-stage-release
builders:
- shell: !include-raw: include-raw-stage-release.sh
+
+- wrapper:
+ # This wrapper is required for all jobs as it configures the wrappers
+ # needed by OpenDaylight infra.
+ name: opendaylight-infra-wrappers
+ wrappers:
+ - timeout:
+ type: absolute
+ timeout: '{build-timeout}'
+ timeout-var: 'BUILD_TIMEOUT'
+ fail: true
+ - ssh-agent-credentials:
+ users:
+ - 'opendaylight-jenkins-ssh'
+ - openstack:
+ single-use: True