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.openecomp.org:10001
46 - docker.push.registry=nexus3.openecomp.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.openecomp.org:10001
62 - docker.push.registry=nexus3.openecomp.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: 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}'
230 name: gerrit-trigger-scm-basedir
233 credentials-id: 'onap-jenkins-ssh'
237 - 'origin/$GERRIT_BRANCH'
240 choosing-strategy: '{choosing-strategy}'
247 credentials-id: 'onap-jenkins-ssh'
257 name: git-extra-project
260 credentials-id: 'onap-jenkins-ssh'
261 url: '$GIT_NO_PROJECT/{project}'
267 wipe-workspace: false
268 basedir: '{checkout-dir}'
272 # This is a single macro to use for all jobs who vote on every (relevant) patch
273 # set. Only 'recheck' trigger word is supported, it always triggers the full set
274 # of relevant jobs, in order to prevent Jenkins from starting only a subset and
275 # still voting Verified+1
277 # server: name of gerrit server to listen to
278 # project: pattern to match triggering projects
279 # branch: triggering branch name
280 # files: pattern to match triggering filepaths
282 name: gerrit-trigger-patch-submitted
285 server-name: '{server}'
287 - patchset-created-event:
288 exclude-drafts: 'false'
289 exclude-trivial-rebase: 'false'
290 exclude-no-code-change: 'false'
291 - draft-published-event
292 - comment-added-contains-event:
293 comment-contains-value: 'recheck'
295 - project-compare-type: 'ANT'
296 project-pattern: '{project}'
298 - branch-compare-type: 'ANT'
299 branch-pattern: '**/{branch}'
301 - compare-type: 'ANT'
305 name: gerrit-trigger-patch-merged
308 server-name: '{server}'
310 - change-merged-event
311 - comment-added-contains-event:
312 comment-contains-value: 'remerge'
314 - project-compare-type: 'ANT'
315 project-pattern: '{project}'
317 - branch-compare-type: 'ANT'
318 branch-pattern: '**/{branch}'
320 - compare-type: 'ANT'
324 name: gerrit-trigger-release-manually
327 server-name: '{server}'
329 - comment-added-contains-event:
330 comment-contains-value: 'please release'
332 - project-compare-type: 'ANT'
333 project-pattern: '{project}'
335 - branch-compare-type: 'ANT'
336 branch-pattern: '**/{branch}'
338 - compare-type: 'ANT'
342 name: trigger-on-build-success
359 # This wrapper is required for all jobs as it configures the wrappers
360 # needed by the eCOMP infra.
365 timeout: '{build-timeout}'
366 timeout-var: 'BUILD_TIMEOUT'
368 - ssh-agent-credentials: