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/**'
173 # To archive things, the job will need to create an "archives" directory in
174 # the workspace and this macro will handle copying the contents of the
175 # archives directory.
177 # Uses the build parameter ARCHIVE_ARTIFACTS if not empty to find files to
178 # archive. You can pass globstar patterns for example "**/*.xml **/*.log" as
179 # the archive pattern. This is a space separated list of files to archive.
181 # Also ensure that the workspace is cleaned up at the end of the build.
185 - shell: !include-raw-escape: include-raw-deploy-archives.sh
187 maven-version: '{maven-version}'
188 pom: '.archives/deploy-archives.xml'
189 goals: 'clean deploy -V -B -q -Dmaven.repo.local=/tmp/r'
190 settings: 'jenkins-log-archives-settings'
192 global-settings: 'global-settings'
193 global-settings-type: cfp
194 - description-setter:
195 regexp: '^Build logs: .*'
196 script-only-if-succeeded: false
197 script-only-if-failed: false
198 mark-unstable-if-failed: true
207 credentials-id: 'onap-jenkins-ssh'
217 name: gerrit-trigger-scm
220 credentials-id: 'onap-jenkins-ssh'
224 - 'origin/$GERRIT_BRANCH'
227 choosing-strategy: '{choosing-strategy}'
229 recursive: '{submodule-recursive}'
232 name: gerrit-trigger-scm-basedir
235 credentials-id: 'onap-jenkins-ssh'
239 - 'origin/$GERRIT_BRANCH'
242 choosing-strategy: '{choosing-strategy}'
249 credentials-id: 'onap-jenkins-ssh'
259 name: git-extra-project
262 credentials-id: 'onap-jenkins-ssh'
263 url: '$GIT_NO_PROJECT/{project}'
269 wipe-workspace: false
270 basedir: '{checkout-dir}'
274 # This is a single macro to use for all jobs who vote on every (relevant) patch
275 # set. Only 'recheck' trigger word is supported, it always triggers the full set
276 # of relevant jobs, in order to prevent Jenkins from starting only a subset and
277 # still voting Verified+1
279 # server: name of gerrit server to listen to
280 # project: pattern to match triggering projects
281 # branch: triggering branch name
282 # files: pattern to match triggering filepaths
284 name: gerrit-trigger-patch-submitted
287 server-name: '{server}'
289 - patchset-created-event:
290 exclude-drafts: 'false'
291 exclude-trivial-rebase: 'false'
292 exclude-no-code-change: 'false'
293 - draft-published-event
294 - comment-added-contains-event:
295 comment-contains-value: 'recheck'
297 - project-compare-type: 'ANT'
298 project-pattern: '{project}'
300 - branch-compare-type: 'ANT'
301 branch-pattern: '**/{branch}'
303 - compare-type: 'ANT'
307 name: gerrit-trigger-patch-merged
310 server-name: '{server}'
312 - change-merged-event
313 - comment-added-contains-event:
314 comment-contains-value: 'remerge'
316 - project-compare-type: 'ANT'
317 project-pattern: '{project}'
319 - branch-compare-type: 'ANT'
320 branch-pattern: '**/{branch}'
322 - compare-type: 'ANT'
326 name: gerrit-trigger-release-manually
329 server-name: '{server}'
331 - comment-added-contains-event:
332 comment-contains-value: 'please release'
334 - project-compare-type: 'ANT'
335 project-pattern: '{project}'
337 - branch-compare-type: 'ANT'
338 branch-pattern: '**/{branch}'
340 - compare-type: 'ANT'
344 name: trigger-on-build-success
361 # This wrapper is required for all jobs as it configures the wrappers
362 # needed by the eCOMP infra.
368 timeout: '{build-timeout}'
369 timeout-var: 'BUILD_TIMEOUT'
371 - ssh-agent-credentials: