2 name: 'PROJECT_SHORTNAME-merge-{stream}'
4 # Job template for ODL merge jobs
6 # The purpose of this job template is to setup a ODL merge job
7 # and deploy artifacts to Nexus.
10 # stream: release stream (eg. stable-lithium or beryllium)
11 # branch: git branch (eg. stable/lithium or master)
20 artifactDaysToKeep: '{build-artifact-days-to-keep}'
21 artifactNumToKeep: '{build-artifact-num-to-keep}'
24 - opendaylight-infra-parameters:
27 refspec: 'refs/heads/{branch}'
28 artifacts: '{archive-artifacts}'
33 choosing-strategy: 'default'
36 - opendaylight-infra-wrappers:
37 build-timeout: '{build-timeout}'
41 - gerrit-trigger-patch-merged:
46 - jacoco-nojava-workaround
47 - provide-maven-settings:
48 global-settings-file: 'odl-global-settings'
49 settings-file: 'JENKINS_SETTINGS'
54 goals: 'MAVEN_GOALS -V -B -Djenkins -Dmerge -Dstream={stream}'
55 maven-opts: 'MAVEN_OPTS'
56 settings: 'JENKINS_SETTINGS'
58 global-settings: 'odl-global-settings'
59 global-settings-type: cfp
60 post-step-run-condition: UNSTABLE
64 condition-kind: file-exists
65 condition-filename: deploy-site.xml
66 condition-basedir: workspace
68 # The strategy here is intentional to run Maven site:deploy twice
69 # once using regular pom.xml to produce a staged-site which is
70 # then used by deploy-site.xml to push to Nexus. This is a
71 # workaround to Maven Site's default linking code which creates
72 # incorrect URLs for sites due to auto-detection assuming your
73 # project is configured in a certain way which ODL is not.
76 maven-version: '{mvn33}'
78 goals: 'site:deploy -V -B -Dstream={stream}'
81 settings: 'JENKINS_SETTINGS'
83 global-settings: 'odl-global-settings'
84 global-settings-type: cfp
86 maven-version: '{mvn33}'
88 goals: 'site:deploy -V -B -Dstream={stream}'
91 settings: 'JENKINS_SETTINGS'
93 global-settings: 'odl-global-settings'
94 global-settings-type: cfp
101 - email-notification:
102 email-prefix: '[PROJECT_SHORTNAME]'
106 deploy-unstable: false
109 maven-version: '{mvn33}'