-- publisher:
- name: opendaylight-infra-shiplogs
- # 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-stack-delete.sh
- - shell: !include-raw-escape: 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:
- exclude:
- # Do not clean up *.jenkins-trigger files for jobs that use a
- # properties file as input for triggering another build.
- - '**/*.jenkins-trigger'
- fail-build: false
+- builder:
+ # Deploys a maven site to Nexus using lftools nexus-zip command
+ name: opendaylight-infra-deploy-maven-site
+ builders:
+ - lf-provide-maven-settings:
+ global-settings-file: global-settings
+ settings-file: '{settings-file}'
+ - lf-infra-create-netrc:
+ server-id: opendaylight-site
+ - shell: !include-raw-escape:
+ - global-jjb/shell/lftools-install.sh
+ - opendaylight-infra-deploy-maven-site.sh
+ - lf-provide-maven-settings-cleanup