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)
18 daysToKeep: '{build-days-to-keep}'
19 numToKeep: '{build-num-to-keep}'
20 artifactDaysToKeep: '{build-artifact-days-to-keep}'
21 artifactNumToKeep: '{build-artifact-num-to-keep}'
28 - gerrit-refspec-parameter:
29 refspec: 'refs/heads/{branch}'
33 credentials-id: '{ssh-credentials}'
35 choosing-strategy: 'default'
39 - ssh-agent-credentials:
45 - gerrit-trigger-patch-merged:
50 - wipe-org-opendaylight-repo
51 - jacoco-nojava-workaround
52 - provide-maven-settings:
53 global-settings-file: '{odl-global-settings}'
54 settings-file: '{JENKINS_SETTINGS}'
59 goals: 'MAVEN_GOALS -Djenkins -Dmerge -Dstream={stream}'
60 maven-opts: 'MAVEN_OPTS'
61 settings: '{JENKINS_SETTINGS}'
62 global-settings: '{odl-global-settings}'
63 post-step-run-condition: UNSTABLE
67 condition-kind: file-exists
68 condition-filename: deploy-site.xml
69 condition-basedir: workspace
71 # The strategy here is intentional to run Maven site:deploy twice
72 # once using regular pom.xml to produce a staged-site which is
73 # then used by deploy-site.xml to push to Nexus. This is a
74 # workaround to Maven Site's default linking code which creates
75 # incorrect URLs for sites due to auto-detection assuming your
76 # project is configured in a certain way which ODL is not.
79 maven-version: '{mvn33}'
81 goals: 'site:deploy -Dstream={stream}'
84 settings: '{JENKINS_SETTINGS}'
85 global-settings: '{odl-global-settings}'
87 maven-version: '{mvn33}'
89 goals: 'site:deploy -Dstream={stream}'
92 settings: '{JENKINS_SETTINGS}'
93 global-settings: '{odl-global-settings}'
100 - email-notification:
101 email-prefix: '[PROJECT_SHORTNAME]'
105 deploy-unstable: false