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
65 name: maven-docker-push-daily-test
68 maven-version: '{maven-version}'
70 goals: 'clean deploy -B -P {mvn-profile}'
71 settings: '{mvn-settings}'
73 global-settings: 'global-settings'
74 global-settings-type: cfp
76 - docker.pull.registry=nexus3.onap.org:10001
77 - docker.push.registry=nexus3.onap.org:10003
82 - shell: !include-raw: include-docker-login.sh
88 properties-content: PYPI_SERVER={pypi-server}
90 !include-raw-escape: ../shell/pypi-publish.sh
94 name: infra-parameters
99 # yamllint disable rule:line-length
100 description: 'JJB configured PROJECT parameter to identify a Gerrit project'
103 name: ARCHIVE_ARTIFACTS
104 default: '{artifacts} **/target/surefire-reports/*-output.txt'
105 # yamllint disable rule:line-length
106 description: 'Space separated glob patterns for artifacts to archive to logs hosting'
111 description: 'JJB configured GERRIT_BRANCH parameter'
115 description: 'GERRIT_PROJECT parameter if not given by trigger'
119 description: 'GERRIT_REFSPEC parameter if not given by trigger'
122 default: '$JOB_NAME-$BUILD_NUMBER'
123 description: 'Used by Heat to generate a unique stack & vm name'
130 default: '{mvn-params}'
131 description: Maven parameters to pass to the mvn command.
138 # yamllint disable rule:line-length
139 default: '/w/tools/hudson.tasks.Maven_MavenInstallation/{maven-version}/bin/mvn'
141 description: 'Maven selector to be used by shell scripts'
144 name: docker-image-name
147 name: DOCKER_IMAGE_NAME
148 # yamllint disable rule:line-length
149 default: '{docker-image-name}'
151 description: 'Docker image name, e.g. onap/appc'
155 name: infra-properties
158 days-to-keep: '{build-days-to-keep}'
160 artifact-days-to-keep: -1
161 artifact-num-to-keep: 5
165 name: archive-artifacts
168 artifacts: '{artifacts}'
174 name: email-notification
177 recipients: 'nobody@open-o.org'
179 content-type: default
180 # yamllint disable rule:line-length
181 subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
184 $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
186 Check console output at $BUILD_URL to view the results.
197 exec-pattern: '**/**.exec'
198 class-pattern: '**/classes'
199 source-pattern: '**/src/main/java'
200 # yamllint disable rule:line-length
201 exclusion-pattern: '**/gen**,**/generated-sources/**,**/yang-gen**,**/pax/**'
213 name: checkstyle-result
216 pattern: '**/checkstyle-result.xml'
219 health-threshold: 'high'
232 name: checkstyle-result-daily
235 pattern: '**/checkstyle-result.xml'
238 health-threshold: 'high'
252 # To archive things, the job will need to create an "archives" directory in
253 # the workspace and this macro will handle copying the contents of the
254 # archives directory.
256 # Uses the build parameter ARCHIVE_ARTIFACTS if not empty to find files to
257 # archive. You can pass globstar patterns for example "**/*.xml **/*.log" as
258 # the archive pattern. This is a space separated list of files to archive.
260 # Also ensure that the workspace is cleaned up at the end of the build.
264 - shell: !include-raw-escape: include-raw-deploy-archives.sh
266 maven-version: '{maven-version}'
267 pom: '.archives/deploy-archives.xml'
268 goals: 'clean deploy -V -B -q -Dmaven.repo.local=/tmp/r'
269 settings: 'jenkins-log-archives-settings'
271 global-settings: 'global-settings'
272 global-settings-type: cfp
273 - description-setter:
274 regexp: '^Build logs: .*'
275 script-only-if-succeeded: false
276 script-only-if-failed: false
277 mark-unstable-if-failed: true
286 credentials-id: 'onap-jenkins-ssh'
296 name: gerrit-trigger-scm
299 credentials-id: 'onap-jenkins-ssh'
303 - 'origin/$GERRIT_BRANCH'
306 choosing-strategy: '{choosing-strategy}'
308 recursive: '{submodule-recursive}'
311 name: gerrit-trigger-scm-basedir
314 credentials-id: 'onap-jenkins-ssh'
318 - 'origin/$GERRIT_BRANCH'
321 choosing-strategy: '{choosing-strategy}'
328 credentials-id: 'onap-jenkins-ssh'
338 name: git-extra-project
341 credentials-id: 'onap-jenkins-ssh'
342 url: '$GIT_NO_PROJECT/{project}'
348 wipe-workspace: false
349 basedir: '{checkout-dir}'
353 # This is a single macro to use for all jobs who vote on every (relevant) patch
354 # set. Only 'recheck' trigger word is supported, it always triggers the full set
355 # of relevant jobs, in order to prevent Jenkins from starting only a subset and
356 # still voting Verified+1
358 # server: name of gerrit server to listen to
359 # project: pattern to match triggering projects
360 # branch: triggering branch name
361 # files: pattern to match triggering filepaths
363 name: gerrit-trigger-patch-submitted
366 server-name: '{server}'
368 - patchset-created-event:
369 exclude-drafts: 'false'
370 exclude-trivial-rebase: 'false'
371 exclude-no-code-change: 'false'
372 - draft-published-event
373 - comment-added-contains-event:
374 comment-contains-value: 'recheck'
376 - project-compare-type: 'ANT'
377 project-pattern: '{project}'
379 - branch-compare-type: 'ANT'
380 branch-pattern: '**/{branch}'
382 - compare-type: 'ANT'
386 name: gerrit-trigger-patch-merged
389 server-name: '{server}'
391 - change-merged-event
392 - comment-added-contains-event:
393 comment-contains-value: 'remerge'
395 - project-compare-type: 'ANT'
396 project-pattern: '{project}'
398 - branch-compare-type: 'ANT'
399 branch-pattern: '**/{branch}'
401 - compare-type: 'ANT'
405 name: gerrit-trigger-release-manually
408 server-name: '{server}'
410 - comment-added-contains-event:
411 comment-contains-value: 'please release'
413 - project-compare-type: 'ANT'
414 project-pattern: '{project}'
416 - branch-compare-type: 'ANT'
417 branch-pattern: '**/{branch}'
419 - compare-type: 'ANT'
423 name: trigger-on-build-success
444 <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2">
445 <goVersion>Golang 1.10</goVersion>
446 </org.jenkinsci.plugins.golang.GolangBuildWrapper>
449 # This wrapper is required for all jobs as it configures the wrappers
450 # needed by the eCOMP infra.
456 timeout: '{build-timeout}'
457 timeout-var: 'BUILD_TIMEOUT'
459 - ssh-agent-credentials: