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} {mvn-params}'
55 settings: '{mvn-settings}'
57 global-settings: 'global-settings'
58 global-settings-type: cfp
60 - docker.pull.registry=nexus3.onap.org:10001
61 - docker.push.registry=nexus3.onap.org:10003
64 name: maven-docker-push-daily-test
67 maven-version: '{maven-version}'
69 goals: 'clean deploy -B -P {mvn-profile}'
70 settings: '{mvn-settings}'
72 global-settings: 'global-settings'
73 global-settings-type: cfp
75 - docker.pull.registry=nexus3.onap.org:10001
76 - docker.push.registry=nexus3.onap.org:10003
81 - shell: !include-raw: include-docker-login.sh
87 properties-content: PYPI_SERVER={pypi-server}
89 !include-raw-escape: ../shell/pypi-publish.sh
93 name: infra-parameters
98 # yamllint disable rule:line-length
99 description: 'JJB configured PROJECT parameter to identify a Gerrit project'
102 name: ARCHIVE_ARTIFACTS
103 default: '{artifacts} **/target/surefire-reports/*-output.txt'
104 # yamllint disable rule:line-length
105 description: 'Space separated glob patterns for artifacts to archive to logs hosting'
110 description: 'JJB configured GERRIT_BRANCH parameter'
114 description: 'GERRIT_PROJECT parameter if not given by trigger'
118 description: 'GERRIT_REFSPEC parameter if not given by trigger'
121 default: '$JOB_NAME-$BUILD_NUMBER'
122 description: 'Used by Heat to generate a unique stack & vm name'
129 default: '{mvn-params}'
130 description: Maven parameters to pass to the mvn command.
137 # yamllint disable rule:line-length
138 default: '/w/tools/hudson.tasks.Maven_MavenInstallation/{maven-version}/bin/mvn'
140 description: 'Maven selector to be used by shell scripts'
143 name: docker-image-name
146 name: DOCKER_IMAGE_NAME
147 # yamllint disable rule:line-length
148 default: '{docker-image-name}'
150 description: 'Docker image name, e.g. onap/appc'
154 name: infra-properties
157 days-to-keep: '{build-days-to-keep}'
159 artifact-days-to-keep: -1
160 artifact-num-to-keep: 5
164 name: archive-artifacts
167 artifacts: '{artifacts}'
173 name: email-notification
176 recipients: 'nobody@open-o.org'
178 content-type: default
179 # yamllint disable rule:line-length
180 subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
183 $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
185 Check console output at $BUILD_URL to view the results.
196 exec-pattern: '**/**.exec'
197 class-pattern: '**/classes'
198 source-pattern: '**/src/main/java'
199 # yamllint disable rule:line-length
200 exclusion-pattern: '**/gen**,**/generated-sources/**,**/yang-gen**,**/pax/**'
212 name: checkstyle-result
215 pattern: '**/checkstyle-result.xml'
218 health-threshold: 'high'
231 name: checkstyle-result-daily
234 pattern: '**/checkstyle-result.xml'
237 health-threshold: 'high'
251 # lf-infra macro to finish up a build.
253 # Handles the following:
254 # - Shipping logs to Nexus logs site repository
255 # - Cleanup workspace
269 mark-unstable-if-failed: true
272 # Do not clean up *.jenkins-trigger files for jobs that use a
273 # properties file as input for triggering another build.
274 - '**/*.jenkins-trigger'
283 credentials-id: 'onap-jenkins-ssh'
293 name: gerrit-trigger-scm
296 credentials-id: 'onap-jenkins-ssh'
300 - 'origin/$GERRIT_BRANCH'
303 choosing-strategy: '{choosing-strategy}'
305 recursive: '{submodule-recursive}'
308 name: gerrit-trigger-scm-basedir
311 credentials-id: 'onap-jenkins-ssh'
315 - 'origin/$GERRIT_BRANCH'
318 choosing-strategy: '{choosing-strategy}'
325 credentials-id: 'onap-jenkins-ssh'
335 name: git-extra-project
338 credentials-id: 'onap-jenkins-ssh'
339 url: '$GIT_NO_PROJECT/{project}'
345 wipe-workspace: false
346 basedir: '{checkout-dir}'
350 # This is a single macro to use for all jobs who vote on every (relevant) patch
351 # set. Only 'recheck' trigger word is supported, it always triggers the full set
352 # of relevant jobs, in order to prevent Jenkins from starting only a subset and
353 # still voting Verified+1
355 # server: name of gerrit server to listen to
356 # project: pattern to match triggering projects
357 # branch: triggering branch name
358 # files: pattern to match triggering filepaths
360 name: gerrit-trigger-patch-submitted
363 server-name: '{server}'
365 - patchset-created-event:
366 exclude-drafts: 'false'
367 exclude-trivial-rebase: 'false'
368 exclude-no-code-change: 'false'
369 - draft-published-event
370 - comment-added-contains-event:
371 comment-contains-value: 'recheck'
373 - project-compare-type: 'ANT'
374 project-pattern: '{project}'
376 - branch-compare-type: 'ANT'
377 branch-pattern: '**/{branch}'
379 - compare-type: 'ANT'
383 name: gerrit-trigger-patch-merged
386 server-name: '{server}'
388 - change-merged-event
389 - comment-added-contains-event:
390 comment-contains-value: 'remerge'
392 - project-compare-type: 'ANT'
393 project-pattern: '{project}'
395 - branch-compare-type: 'ANT'
396 branch-pattern: '**/{branch}'
398 - compare-type: 'ANT'
402 name: gerrit-trigger-release-manually
405 server-name: '{server}'
407 - comment-added-contains-event:
408 comment-contains-value: 'please release'
410 - project-compare-type: 'ANT'
411 project-pattern: '{project}'
413 - branch-compare-type: 'ANT'
414 branch-pattern: '**/{branch}'
416 - compare-type: 'ANT'
420 name: trigger-on-build-success
441 <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2">
442 <goVersion>Golang 1.10</goVersion>
443 </org.jenkinsci.plugins.golang.GolangBuildWrapper>
446 # This wrapper is required for all jobs as it configures the wrappers
447 # needed by the eCOMP infra.
453 timeout: '{build-timeout}'
454 timeout-var: 'BUILD_TIMEOUT'
456 - ssh-agent-credentials: