4 # vim: sw=2 ts=2 sts=2 et :
8 name: provide-maven-settings
10 - config-file-provider:
12 - file-id: '{global-settings-file}'
13 variable: 'GLOBAL_SETTINGS_FILE'
14 - file-id: '{settings-file}'
15 variable: 'SETTINGS_FILE'
17 # call maven-target builder with a goal of --version to force Jenkins to
18 # install the needed maven version
23 maven-version: '{maven-version}'
27 name: maven-set-release-version
30 maven-version: '{maven-version}'
32 goals: 'versions:set versions:update-child-modules versions:commit -B'
34 - 'newVersion=${{release_version}}'
35 settings: '{mvn-settings}'
37 global-settings: 'global-settings'
38 global-settings-type: cfp
41 name: maven-docker-push-release
44 maven-version: '{maven-version}'
46 goals: 'clean deploy -B -P {mvn-profile}'
47 settings: '{mvn-settings}'
49 global-settings: 'global-settings'
50 global-settings-type: cfp
52 - maven.test.skip=true
53 - docker.pull.registry=nexus3.onap.org:10001
54 - docker.push.registry=nexus3.onap.org:10002
57 name: maven-docker-push-daily
60 maven-version: '{maven-version}'
62 goals: 'clean deploy -B -P {mvn-profile} {mvn-params}'
63 settings: '{mvn-settings}'
65 global-settings: 'global-settings'
66 global-settings-type: cfp
68 - docker.pull.registry=nexus3.onap.org:10001
69 - docker.push.registry=nexus3.onap.org:10003
74 - shell: !include-raw: include-docker-login.sh
80 properties-content: PYPI_SERVER={pypi-server}
82 !include-raw-escape: ../shell/pypi-publish.sh
86 name: infra-parameters
91 # yamllint disable rule:line-length
92 description: 'JJB configured PROJECT parameter to identify a Gerrit project'
95 name: ARCHIVE_ARTIFACTS
96 default: '{artifacts} **/target/surefire-reports/*-output.txt'
97 # yamllint disable rule:line-length
98 description: 'Space separated glob patterns for artifacts to archive to logs hosting'
103 description: 'JJB configured GERRIT_BRANCH parameter'
107 description: 'GERRIT_PROJECT parameter if not given by trigger'
111 description: 'GERRIT_REFSPEC parameter if not given by trigger'
114 default: '$JOB_NAME-$BUILD_NUMBER'
115 description: 'Used by Heat to generate a unique stack & vm name'
122 default: '{mvn-params}'
123 description: Maven parameters to pass to the mvn command.
130 # yamllint disable rule:line-length
131 default: '/w/tools/hudson.tasks.Maven_MavenInstallation/{maven-version}/bin/mvn'
133 description: 'Maven selector to be used by shell scripts'
136 name: docker-image-name
139 name: DOCKER_IMAGE_NAME
140 # yamllint disable rule:line-length
141 default: '{docker-image-name}'
143 description: 'Docker image name, e.g. onap/appc'
147 name: infra-properties
150 days-to-keep: '{build-days-to-keep}'
152 artifact-days-to-keep: -1
153 artifact-num-to-keep: 5
157 name: archive-artifacts
160 artifacts: '{artifacts}'
166 name: email-notification
169 recipients: 'nobody@open-o.org'
171 content-type: default
172 # yamllint disable rule:line-length
173 subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
176 $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
178 Check console output at $BUILD_URL to view the results.
189 exec-pattern: '**/**.exec'
190 class-pattern: '**/classes'
191 source-pattern: '**/src/main/java'
192 # yamllint disable rule:line-length
193 exclusion-pattern: '**/gen**,**/generated-sources/**,**/yang-gen**,**/pax/**'
205 name: checkstyle-result
208 pattern: '**/checkstyle-result.xml'
211 health-threshold: 'high'
224 name: checkstyle-result-daily
227 pattern: '**/checkstyle-result.xml'
230 health-threshold: 'high'
247 credentials-id: 'onap-jenkins-ssh'
257 name: gerrit-trigger-scm
260 credentials-id: 'onap-jenkins-ssh'
264 - 'origin/$GERRIT_BRANCH'
267 choosing-strategy: '{choosing-strategy}'
269 recursive: '{submodule-recursive}'
272 name: gerrit-trigger-scm-basedir
275 credentials-id: 'onap-jenkins-ssh'
279 - 'origin/$GERRIT_BRANCH'
282 choosing-strategy: '{choosing-strategy}'
289 credentials-id: 'onap-jenkins-ssh'
299 name: git-extra-project
302 credentials-id: 'onap-jenkins-ssh'
303 url: '$GIT_NO_PROJECT/{project}'
309 wipe-workspace: false
310 basedir: '{checkout-dir}'
314 # This is a single macro to use for all jobs who vote on every (relevant) patch
315 # set. Only 'recheck' trigger word is supported, it always triggers the full set
316 # of relevant jobs, in order to prevent Jenkins from starting only a subset and
317 # still voting Verified+1
319 # server: name of gerrit server to listen to
320 # project: pattern to match triggering projects
321 # branch: triggering branch name
322 # files: pattern to match triggering filepaths
324 name: gerrit-trigger-patch-submitted
327 server-name: '{server}'
329 - patchset-created-event:
330 exclude-drafts: 'false'
331 exclude-trivial-rebase: 'false'
332 exclude-no-code-change: 'false'
333 - draft-published-event
334 - comment-added-contains-event:
335 comment-contains-value: 'recheck'
337 - project-compare-type: 'ANT'
338 project-pattern: '{project}'
340 - branch-compare-type: 'ANT'
341 branch-pattern: '**/{branch}'
343 - compare-type: 'ANT'
347 name: gerrit-trigger-patch-merged
350 server-name: '{server}'
352 - change-merged-event
353 - comment-added-contains-event:
354 comment-contains-value: 'remerge'
356 - project-compare-type: 'ANT'
357 project-pattern: '{project}'
359 - branch-compare-type: 'ANT'
360 branch-pattern: '**/{branch}'
362 - compare-type: 'ANT'
366 name: gerrit-trigger-helm-patch-submitted
369 server-name: '{server}'
371 - patchset-created-event:
372 exclude-drafts: 'false'
373 exclude-no-code-change: 'false'
374 exclude-trivial-rebase: 'true'
376 - draft-published-event
377 - comment-added-contains-event:
378 comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify|verify-helm)\s*$'
380 - project-compare-type: 'ANT'
381 project-pattern: '{project}'
383 - branch-compare-type: 'ANT'
384 branch-pattern: '**/{branch}'
386 - compare-type: 'ANT'
390 name: gerrit-trigger-helm-patch-merged
393 server-name: '{server}'
395 - change-merged-event
396 - comment-added-contains-event:
397 comment-contains-value: '^remerge-helm$'
399 - project-compare-type: 'ANT'
400 project-pattern: '{project}'
402 - branch-compare-type: 'ANT'
403 branch-pattern: '**/{branch}'
405 - compare-type: 'ANT'
409 name: gerrit-trigger-release-manually
412 server-name: '{server}'
414 - comment-added-contains-event:
415 comment-contains-value: 'please release'
417 - project-compare-type: 'ANT'
418 project-pattern: '{project}'
420 - branch-compare-type: 'ANT'
421 branch-pattern: '**/{branch}'
423 - compare-type: 'ANT'
427 name: trigger-on-build-success
448 <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2">
449 <goVersion>Golang 1.10</goVersion>
450 </org.jenkinsci.plugins.golang.GolangBuildWrapper>
457 <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2">
458 <goVersion>Golang 1.11</goVersion>
459 </org.jenkinsci.plugins.golang.GolangBuildWrapper>
466 <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2">
467 <goVersion>Golang 1.12</goVersion>
468 </org.jenkinsci.plugins.golang.GolangBuildWrapper>
475 <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2">
476 <goVersion>Golang 1.14</goVersion>
477 </org.jenkinsci.plugins.golang.GolangBuildWrapper>
480 # This wrapper is required for all jobs as it configures the wrappers
481 # needed by the eCOMP infra.
487 timeout: '{build-timeout}'
488 timeout-var: 'BUILD_TIMEOUT'
490 - ssh-agent-credentials:
497 # This wrapper is used for docker build jobs to use the dedicated docker
498 # build VM and turn off OpenStack single-use
499 name: infra-wrappers-docker-build
504 timeout: '{build-timeout}'
505 timeout-var: 'BUILD_TIMEOUT'
507 - ssh-agent-credentials: