8 # TODO: Figure out what's wrong with the gerrit-maven-merge job.
9 # - gerrit-maven-merge:
12 # - 'distribution-merge-{stream}'
14 # trigger-with-no-params: true
15 - '{project-name}-merge-{stream}':
16 mvn-goals: clean install -V -Dmaven.compile.fork=true -Dintegrationtests -Dvtn.build.jobs=2
18 - gerrit-maven-release
20 - gerrit-maven-verify-dependencies:
24 name: '{project-name}-integration-{stream}'
26 ######################
27 # Default parameters #
28 ######################
30 mvn-goals: clean install
36 project-type: freestyle
41 - opendaylight-infra-properties:
42 build-days-to-keep: '{build-days-to-keep}'
45 - opendaylight-infra-parameters:
46 os-cloud: '{os-cloud}'
49 refspec: 'refs/heads/{branch}'
50 artifacts: '{archive-artifacts}'
58 - opendaylight-infra-wrappers:
59 build-timeout: '{build-timeout}'
63 jobs: '{dependencies}'
67 - jacoco-nojava-workaround
68 - provide-maven-settings:
69 global-settings-file: 'global-settings'
70 settings-file: '{mvn-settings}'
72 maven-version: 'mvn33'
75 {opendaylight-infra-mvn-opts}
78 settings: '{mvn-settings}'
80 global-settings: 'global-settings'
81 global-settings-type: cfp
85 email-recipients: '{email-recipients}'
86 email-prefix: '{email-upstream}'
92 name: '{project-name}-merge-{stream}'
94 ######################
95 # Default parameters #
96 ######################
98 java-version: openjdk8
100 #####################
101 # Job Configuration #
102 #####################
104 # Need to keep jobs that deploy to Nexus at end of build as Maven
105 # projects. Maybe reconsider this once upstream moves deploy to a
106 # separate lifecycle:
107 # https://issues.apache.org/jira/browse/MNG-5666
110 jdk: '{java-version}'
113 - opendaylight-infra-properties:
114 build-days-to-keep: 14
117 - opendaylight-infra-parameters:
118 os-cloud: '{os-cloud}'
121 refspec: 'refs/heads/{branch}'
122 artifacts: '{archive-artifacts}'
126 description: "String representing release name"
129 - gerrit-trigger-scm:
131 choosing-strategy: 'default'
134 - opendaylight-infra-wrappers:
135 build-timeout: '{build-timeout}'
139 - gerrit-trigger-patch-merged:
140 gerrit-server-name: '{gerrit-server-name}'
145 - jacoco-nojava-workaround
146 - provide-maven-settings:
147 global-settings-file: 'global-settings'
148 settings-file: '{mvn-settings}'
150 # TODO: Do we want to apply sophisticated checks as in *-distribution-check-*?
157 {opendaylight-infra-mvn-opts}
158 maven-opts: '{mvn-opts}'
159 settings: '{mvn-settings}'
161 global-settings: 'global-settings'
162 global-settings-type: cfp
163 post-step-run-condition: UNSTABLE
167 condition-kind: file-exists
168 condition-filename: deploy-site.xml
169 condition-basedir: workspace
171 # The strategy here is intentional to run Maven site:deploy twice
172 # once using regular pom.xml to produce a staged-site which is
173 # then used by deploy-site.xml to push to Nexus. This is a
174 # workaround to Maven Site's default linking code which creates
175 # incorrect URLs for sites due to auto-detection assuming your
176 # project is configured in a certain way which ODL is not.
179 maven-version: 'mvn33'
181 goals: 'site:deploy -V -B -Dstream={stream}'
184 settings: '{mvn-settings}'
186 global-settings: 'global-settings'
187 global-settings-type: cfp
188 - opendaylight-infra-deploy-maven-site:
189 settings-file: '{mvn-settings}'
195 - email-notification:
196 email-recipients: '{email-recipients}'
197 email-prefix: '[{project-name}]'
201 deploy-unstable: false
205 project: 'distribution-merge-{stream}'