4 # vim: sw=2 ts=2 sts=2 et :
8 name: ci-management-check-unicode
11 $WORKSPACE/scripts/check-unicode.sh jjb/
14 name: provide-maven-settings
16 - config-file-provider:
18 - file-id: '{global-settings-file}'
19 variable: 'GLOBAL_SETTINGS_FILE'
20 - file-id: '{settings-file}'
21 variable: 'SETTINGS_FILE'
23 # call maven-target builder with a goal of --version to force Jenkins to
24 # install the needed maven version
29 maven-version: '{maven-version}'
33 name: maven-docker-push-release
36 maven-version: '{maven-version}'
38 goals: 'clean deploy -B -P {mvn-profile}'
39 settings: '{mvn-settings}'
41 global-settings: 'global-settings'
42 global-settings-type: cfp
44 - maven.test.skip=true
45 - docker.pull.registry=nexus3.onap.org:10001
46 - docker.push.registry=nexus3.onap.org:10002
49 name: maven-docker-push-daily
52 maven-version: '{maven-version}'
54 goals: 'clean deploy -B -P {mvn-profile}'
55 settings: '{mvn-settings}'
57 global-settings: 'global-settings'
58 global-settings-type: cfp
60 - maven.test.skip=true
61 - docker.pull.registry=nexus3.onap.org:10001
62 - docker.push.registry=nexus3.onap.org:10003
67 - shell: !include-raw: include-docker-login.sh
71 name: infra-parameters
76 # yamllint disable rule:line-length
77 description: 'JJB configured PROJECT parameter to identify a Gerrit project'
80 name: ARCHIVE_ARTIFACTS
81 default: '{artifacts} **/target/surefire-reports/*-output.txt'
82 # yamllint disable rule:line-length
83 description: 'Space separated glob patterns for artifacts to archive to logs hosting'
88 description: 'JJB configured GERRIT_BRANCH parameter'
92 description: 'GERRIT_PROJECT parameter if not given by trigger'
96 description: 'GERRIT_REFSPEC parameter if not given by trigger'
99 default: '$JOB_NAME-$BUILD_NUMBER'
100 description: 'Used by Heat to generate a unique stack & vm name'
107 # yamllint disable rule:line-length
108 default: '/w/tools/hudson.tasks.Maven_MavenInstallation/{maven-version}/bin/mvn'
110 description: 'Maven selector to be used by shell scripts'
114 name: infra-properties
117 days-to-keep: '{build-days-to-keep}'
119 artifact-days-to-keep: -1
120 artifact-num-to-keep: 5
124 name: archive-artifacts
127 artifacts: '{artifacts}'
133 name: email-notification
136 recipients: 'nobody@open-o.org'
138 content-type: default
139 # yamllint disable rule:line-length
140 subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
143 $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
145 Check console output at $BUILD_URL to view the results.
156 exec-pattern: '**/**.exec'
157 class-pattern: '**/classes'
158 source-pattern: '**/src/main/java'
159 # yamllint disable rule:line-length
160 exclusion-pattern: '**/gen**,**/generated-sources/**,**/yang-gen**,**/pax/**'
172 name: checkstyle-result
175 pattern: '**/checkstyle-result.xml'
178 health-threshold: 'high'
191 name: checkstyle-result-daily
194 pattern: '**/checkstyle-result.xml'
197 health-threshold: 'high'
211 # To archive things, the job will need to create an "archives" directory in
212 # the workspace and this macro will handle copying the contents of the
213 # archives directory.
215 # Uses the build parameter ARCHIVE_ARTIFACTS if not empty to find files to
216 # archive. You can pass globstar patterns for example "**/*.xml **/*.log" as
217 # the archive pattern. This is a space separated list of files to archive.
219 # Also ensure that the workspace is cleaned up at the end of the build.
223 - shell: !include-raw-escape: include-raw-deploy-archives.sh
225 maven-version: '{maven-version}'
226 pom: '.archives/deploy-archives.xml'
227 goals: 'clean deploy -V -B -q -Dmaven.repo.local=/tmp/r'
228 settings: 'jenkins-log-archives-settings'
230 global-settings: 'global-settings'
231 global-settings-type: cfp
232 - description-setter:
233 regexp: '^Build logs: .*'
234 script-only-if-succeeded: false
235 script-only-if-failed: false
236 mark-unstable-if-failed: true
245 credentials-id: 'onap-jenkins-ssh'
255 name: gerrit-trigger-scm
258 credentials-id: 'onap-jenkins-ssh'
262 - 'origin/$GERRIT_BRANCH'
265 choosing-strategy: '{choosing-strategy}'
267 recursive: '{submodule-recursive}'
270 name: gerrit-trigger-scm-basedir
273 credentials-id: 'onap-jenkins-ssh'
277 - 'origin/$GERRIT_BRANCH'
280 choosing-strategy: '{choosing-strategy}'
287 credentials-id: 'onap-jenkins-ssh'
297 name: git-extra-project
300 credentials-id: 'onap-jenkins-ssh'
301 url: '$GIT_NO_PROJECT/{project}'
307 wipe-workspace: false
308 basedir: '{checkout-dir}'
312 # This is a single macro to use for all jobs who vote on every (relevant) patch
313 # set. Only 'recheck' trigger word is supported, it always triggers the full set
314 # of relevant jobs, in order to prevent Jenkins from starting only a subset and
315 # still voting Verified+1
317 # server: name of gerrit server to listen to
318 # project: pattern to match triggering projects
319 # branch: triggering branch name
320 # files: pattern to match triggering filepaths
322 name: gerrit-trigger-patch-submitted
325 server-name: '{server}'
327 - patchset-created-event:
328 exclude-drafts: 'false'
329 exclude-trivial-rebase: 'false'
330 exclude-no-code-change: 'false'
331 - draft-published-event
332 - comment-added-contains-event:
333 comment-contains-value: 'recheck'
335 - project-compare-type: 'ANT'
336 project-pattern: '{project}'
338 - branch-compare-type: 'ANT'
339 branch-pattern: '**/{branch}'
341 - compare-type: 'ANT'
345 name: gerrit-trigger-patch-merged
348 server-name: '{server}'
350 - change-merged-event
351 - comment-added-contains-event:
352 comment-contains-value: 'remerge'
354 - project-compare-type: 'ANT'
355 project-pattern: '{project}'
357 - branch-compare-type: 'ANT'
358 branch-pattern: '**/{branch}'
360 - compare-type: 'ANT'
364 name: gerrit-trigger-release-manually
367 server-name: '{server}'
369 - comment-added-contains-event:
370 comment-contains-value: 'please release'
372 - project-compare-type: 'ANT'
373 project-pattern: '{project}'
375 - branch-compare-type: 'ANT'
376 branch-pattern: '**/{branch}'
378 - compare-type: 'ANT'
382 name: trigger-on-build-success
399 # This wrapper is required for all jobs as it configures the wrappers
400 # needed by the eCOMP infra.
406 timeout: '{build-timeout}'
407 timeout-var: 'BUILD_TIMEOUT'
409 - ssh-agent-credentials: