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}'
29 refspec: 'refs/heads/{branch}'
33 credentials-id: '{ssh-credentials}'
35 choosing-strategy: 'default'
39 - ssh-agent-credentials:
47 - gerrit-trigger-patch-merged:
52 - jacoco-nojava-workaround
53 - provide-maven-settings:
54 global-settings-file: 'odl-global-settings'
55 settings-file: 'JENKINS_SETTINGS'
60 goals: 'MAVEN_GOALS -V -B -Djenkins -Dmerge -Dstream={stream}'
61 maven-opts: 'MAVEN_OPTS'
62 settings: 'JENKINS_SETTINGS'
64 global-settings: 'odl-global-settings'
65 global-settings-type: cfp
66 post-step-run-condition: UNSTABLE
70 condition-kind: file-exists
71 condition-filename: deploy-site.xml
72 condition-basedir: workspace
74 # The strategy here is intentional to run Maven site:deploy twice
75 # once using regular pom.xml to produce a staged-site which is
76 # then used by deploy-site.xml to push to Nexus. This is a
77 # workaround to Maven Site's default linking code which creates
78 # incorrect URLs for sites due to auto-detection assuming your
79 # project is configured in a certain way which ODL is not.
82 maven-version: '{mvn33}'
84 goals: 'site:deploy -V -B -Dstream={stream}'
87 settings: 'JENKINS_SETTINGS'
89 global-settings: 'odl-global-settings'
90 global-settings-type: cfp
92 maven-version: '{mvn33}'
94 goals: 'site:deploy -V -B -Dstream={stream}'
97 settings: 'JENKINS_SETTINGS'
99 global-settings: 'odl-global-settings'
100 global-settings-type: cfp
107 - email-notification:
108 email-prefix: '[PROJECT_SHORTNAME]'
112 deploy-unstable: false
115 maven-version: '{mvn33}'