4 name: project-parameter
9 description: "JJB configured PROJECT parameter to identify an ODL Gerrit project"
12 name: gerrit-parameters
17 description: "GERRIT_PROJECT parameter if not given by trigger"
21 description: "JJB configured GERRIT_BRANCH parameter"
25 description: "GERRIT_REFSPEC parameter if not given by trigger"
33 description: 'Tag in Git to checkout'
36 name: controller-version-parameter
40 default: '{odl_version}'
41 description: 'Controller version (for use with openstacks networking_odl project)'
44 name: patches-to-build-parameter
47 name: PATCHES_TO_BUILD
49 description: 'csv list of patches in project:changeset format to build distribution with'
52 name: distribution-branch-to-build-parameter
55 name: DISTRIBUTION_BRANCH_TO_BUILD
57 description: 'distribution repo branch to build with'
65 description: 'Nexus staging profile id'
68 name: stage-id-parameter
71 name: STAGING_PROFILE_ID
73 description: 'Nexus staging profile id'
79 credentials-id: '{credentials-id}'
88 name: git-scm-with-submodules
91 credentials-id: '{credentials-id}'
95 - 'refs/heads/{branch}'
102 name: gerrit-trigger-scm
105 credentials-id: '{credentials-id}'
109 - 'origin/$GERRIT_BRANCH'
111 choosing-strategy: '{choosing-strategy}'
122 name: gerrit-trigger-patch-submitted
125 server-name: 'OpenDaylight'
127 - patchset-created-event:
128 exclude-drafts: 'false'
129 exclude-trivial-rebase: 'false'
130 exclude-no-code-change: 'false'
131 - draft-published-event
132 - comment-added-contains-event:
133 comment-contains-value: 'recheck'
134 - comment-added-contains-event:
135 comment-contains-value: 'reverify'
137 - project-compare-type: 'ANT'
138 project-pattern: '{name}'
140 - branch-compare-type: 'ANT'
141 branch-pattern: '**/{branch}'
144 name: gerrit-trigger-relevant-patch-submitted
147 server-name: 'OpenDaylight'
149 - patchset-created-event:
150 exclude-drafts: 'true'
151 exclude-trivial-rebase: 'false'
152 exclude-no-code-change: 'true'
153 - draft-published-event
154 - comment-added-contains-event:
155 comment-contains-value: 'recheck'
156 - comment-added-contains-event:
157 comment-contains-value: 'reverify'
159 - project-compare-type: 'ANT'
160 project-pattern: '{name}'
162 - branch-compare-type: 'ANT'
163 branch-pattern: '**/{branch}'
166 name: gerrit-trigger-patch-merged
169 server-name: 'OpenDaylight'
171 - change-merged-event
172 - comment-added-contains-event:
173 comment-contains-value: 'remerge'
175 - project-compare-type: 'ANT'
176 project-pattern: '{name}'
178 - branch-compare-type: 'ANT'
179 branch-pattern: '**/{branch}'
182 name: gerrit-trigger-patch-sonar
185 server-name: 'OpenDaylight'
187 - comment-added-contains-event:
188 comment-contains-value: 'run-sonar'
190 - project-compare-type: 'ANT'
191 project-pattern: '{name}'
193 - branch-compare-type: 'ANT'
194 branch-pattern: '**/master'
202 name: gerrit-trigger-patch-site-merged
205 server-name: 'OpenDaylight'
207 - change-merged-event
208 - comment-added-contains-event:
209 comment-contains-value: 'republish'
211 - project-compare-type: 'ANT'
212 project-pattern: '{name}'
214 - branch-compare-type: 'ANT'
215 branch-pattern: '**/{branch}'
218 name: archive-artifacts
221 artifacts: '{artifacts}'
227 name: email-notification
230 recipients: 'jenkins@lists.opendaylight.org'
232 content-type: default
233 subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
235 $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
237 Check console output at $BUILD_URL to view the results.
248 exec-pattern: "**/**.exec"
249 class-pattern: "**/classes"
250 source-pattern: "**/src/main/java"
251 exclusion-pattern: "**/gen/**,**/generated-sources/**,**/yang-gen**,**/pax/**"
263 # To archive things the job will need to create a "archives" directory in
264 # the workspace and this macro will handle copying the contents of the
265 # archives directory.
266 # Also ensure that the workspace is cleaned up at the end of the build.
270 - shell: !include-raw: include-raw-deploy-archives.sh
272 maven-version: '{maven-version}'
273 pom: '.archives/deploy-archives.xml'
274 goals: 'clean deploy -V -B -q -Dmaven.repo.local=/tmp/r'
275 settings: 'jenkins-log-archives-settings'
277 global-settings: 'odl-global-settings'
278 global-settings-type: cfp
279 - description-setter:
280 regexp: '^Build logs: .*'
281 # Cleanup after ourselves
282 - wipe-org-opendaylight-repo
283 script-only-if-succeeded: False
284 script-only-if-failed: False
285 mark-unstable-if-failed: True
290 name: wipe-org-opendaylight-repo
292 - shell: 'if [ -d /tmp/r/org/opendaylight ]; then rm -rf /tmp/r/org/opendaylight; fi'
295 name: wipe-local-maven-repo
297 - shell: 'if [ -d /tmp/r ]; then rm -rf /tmp/r; fi'
300 name: jacoco-nojava-workaround
302 - shell: 'mkdir -p $WORKSPACE/target/classes $WORKSPACE/jacoco/classes'
308 application-name: '{application-name}'
311 name: releng-check-unicode
314 $WORKSPACE/scripts/check-unicode.sh jjb/
317 name: provide-maven-settings
319 - config-file-provider:
321 - file-id: '{global-settings-file}'
322 variable: 'GLOBAL_SETTINGS_FILE'
323 - file-id: '{settings-file}'
324 variable: 'SETTINGS_FILE'
327 name: releng-fetch-p2zip-if-necessary
330 # Cleanup any existing zips and metadata before we download the new update site
333 condition-kind: strings-match
334 condition-string1: '$P2ZIP_URL'
335 condition-string2: ''
336 condition-basedir: workspace
338 # TODO: Figure out latest snapshot version number to pull rather than hardcoding 1.1.1-SNAPSHOT
340 maven-version: '{maven-version}'
341 goals: 'org.apache.maven.plugins:maven-dependency-plugin:get org.apache.maven.plugins:maven-dependency-plugin:copy -V -B -Dartifact=org.opendaylight.yangide:org.opendaylight.yangide.update-site:1.1.1-SNAPSHOT:zip -DoutputDirectory=$WORKSPACE'
342 settings: '{settings}'
343 global-settings: '{global-settings}'
346 name: releng-generate-p2pom
348 - shell: !include-raw: include-raw-generate-p2pom.sh
351 name: releng-update-p2composite-metadata
353 - shell: !include-raw: include-raw-update-p2composite-metadata.sh
355 condition-kind: file-exists
356 condition-filename: deploy-composite-repo.xml
357 condition-basedir: workspace
360 maven-version: '{maven-version}'
361 pom: 'deploy-composite-repo.xml'
362 goals: 'clean deploy -V -B -Dmaven.repo.local=/tmp/r'
363 settings: '{settings}'
364 global-settings: '{global-settings}'
367 name: releng-stage-release
369 - shell: !include-raw: include-raw-stage-release.sh