+- 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.
+ #
+ # Uses the build parameter ARCHIVE_ARTIFACTS if not empty to find files
+ # to archive. You can pass globstar patterns for example "**/*.xml **/*.log"
+ # as the archive pattern. This is a space separated list of files to archive.
+ #
+ # 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: opendaylight-infra-pre-builders
+ builders:
+ - shell: |
+ if [ ! -z "$GERRIT_PATCHSET_REVISION" ]; then
+ LOG_MESSAGE="
+ Logs for $JOB_NAME:
+ https://logs.opendaylight.org/$SILO/$JENKINS_HOSTNAME/$JOB_NAME/$BUILD_NUMBER
+ (note that logs will be unavailable until the job is completed running.)
+ "
+ ssh -p 29418 jenkins-$SILO@git.opendaylight.org gerrit review -m \"${LOG_MESSAGE}\" $GERRIT_PATCHSET_REVISION
+ fi
+