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}'
29 credentials-id: '{ssh-credentials}'
31 choosing-strategy: 'default'
35 - ssh-agent-credentials:
40 - gerrit-trigger-patch-merged:
45 - wipe-org-opendaylight-repo
46 - jacoco-nojava-workaround
47 - provide-maven-settings:
48 global-settings-file: '{odl-global-settings}'
49 settings-file: '{JENKINS_SETTINGS}'
54 goals: 'MAVEN_GOALS -Dmerge -Dstream={stream}'
55 maven-opts: 'MAVEN_OPTS'
56 settings: '{JENKINS_SETTINGS}'
57 global-settings: '{odl-global-settings}'
58 post-step-run-condition: UNSTABLE
62 condition-kind: file-exists
63 condition-filename: deploy-site.xml
64 condition-basedir: workspace
66 # The strategy here is intentional to run Maven site:deploy twice
67 # once using regular pom.xml to produce a staged-site which is
68 # then used by deploy-site.xml to push to Nexus. This is a
69 # workaround to Maven Site's default linking code which creates
70 # incorrect URLs for sites due to auto-detection assuming your
71 # project is configured in a certain way which ODL is not.
74 maven-version: '{mvn33}'
76 goals: 'site:deploy -Dstream={stream}'
79 settings: '{JENKINS_SETTINGS}'
80 global-settings: '{odl-global-settings}'
82 maven-version: '{mvn33}'
84 goals: 'site:deploy -Dstream={stream}'
87 settings: '{JENKINS_SETTINGS}'
88 global-settings: '{odl-global-settings}'
96 email-prefix: '[PROJECT_SHORTNAME]'
100 deploy-unstable: false