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
73 application-name: '{application-name}'
77 name: infra-parameters
82 # yamllint disable rule:line-length
83 description: 'JJB configured PROJECT parameter to identify a Gerrit project'
86 name: ARCHIVE_ARTIFACTS
87 default: '{artifacts} **/target/surefire-reports/*-output.txt'
88 # yamllint disable rule:line-length
89 description: 'Space separated glob patterns for artifacts to archive to logs hosting'
94 description: 'JJB configured GERRIT_BRANCH parameter'
98 description: 'GERRIT_PROJECT parameter if not given by trigger'
102 description: 'GERRIT_REFSPEC parameter if not given by trigger'
105 default: '$JOB_NAME-$BUILD_NUMBER'
106 description: 'Used by Heat to generate a unique stack & vm name'
113 # yamllint disable rule:line-length
114 default: '/w/tools/hudson.tasks.Maven_MavenInstallation/{maven-version}/bin/mvn'
116 description: 'Maven selector to be used by shell scripts'
120 name: infra-properties
123 days-to-keep: '{build-days-to-keep}'
125 artifact-days-to-keep: -1
126 artifact-num-to-keep: 5
130 name: archive-artifacts
133 artifacts: '{artifacts}'
139 name: email-notification
142 recipients: 'nobody@open-o.org'
144 content-type: default
145 # yamllint disable rule:line-length
146 subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
149 $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
151 Check console output at $BUILD_URL to view the results.
162 exec-pattern: '**/**.exec'
163 class-pattern: '**/classes'
164 source-pattern: '**/src/main/java'
165 # yamllint disable rule:line-length
166 exclusion-pattern: '**/gen**,**/generated-sources/**,**/yang-gen**,**/pax/**'
179 # To archive things, the job will need to create an "archives" directory in
180 # the workspace and this macro will handle copying the contents of the
181 # archives directory.
183 # Uses the build parameter ARCHIVE_ARTIFACTS if not empty to find files to
184 # archive. You can pass globstar patterns for example "**/*.xml **/*.log" as
185 # the archive pattern. This is a space separated list of files to archive.
187 # Also ensure that the workspace is cleaned up at the end of the build.
191 - shell: !include-raw-escape: include-raw-deploy-archives.sh
193 maven-version: '{maven-version}'
194 pom: '.archives/deploy-archives.xml'
195 goals: 'clean deploy -V -B -q -Dmaven.repo.local=/tmp/r'
196 settings: 'jenkins-log-archives-settings'
198 global-settings: 'global-settings'
199 global-settings-type: cfp
200 - description-setter:
201 regexp: '^Build logs: .*'
202 script-only-if-succeeded: false
203 script-only-if-failed: false
204 mark-unstable-if-failed: true
213 credentials-id: 'onap-jenkins-ssh'
223 name: gerrit-trigger-scm
226 credentials-id: 'onap-jenkins-ssh'
230 - 'origin/$GERRIT_BRANCH'
233 choosing-strategy: '{choosing-strategy}'
236 name: gerrit-trigger-scm-basedir
239 credentials-id: 'onap-jenkins-ssh'
243 - 'origin/$GERRIT_BRANCH'
246 choosing-strategy: '{choosing-strategy}'
253 credentials-id: 'onap-jenkins-ssh'
263 name: git-extra-project
266 credentials-id: 'onap-jenkins-ssh'
267 url: '$GIT_NO_PROJECT/{project}'
273 wipe-workspace: false
274 basedir: '{checkout-dir}'
278 # This is a single macro to use for all jobs who vote on every (relevant) patch
279 # set. Only 'recheck' trigger word is supported, it always triggers the full set
280 # of relevant jobs, in order to prevent Jenkins from starting only a subset and
281 # still voting Verified+1
283 # server: name of gerrit server to listen to
284 # project: pattern to match triggering projects
285 # branch: triggering branch name
286 # files: pattern to match triggering filepaths
288 name: gerrit-trigger-patch-submitted
291 server-name: '{server}'
293 - patchset-created-event:
294 exclude-drafts: 'false'
295 exclude-trivial-rebase: 'false'
296 exclude-no-code-change: 'false'
297 - draft-published-event
298 - comment-added-contains-event:
299 comment-contains-value: 'recheck'
301 - project-compare-type: 'ANT'
302 project-pattern: '{project}'
304 - branch-compare-type: 'ANT'
305 branch-pattern: '**/{branch}'
307 - compare-type: 'ANT'
311 name: gerrit-trigger-patch-merged
314 server-name: '{server}'
316 - change-merged-event
317 - comment-added-contains-event:
318 comment-contains-value: 'remerge'
320 - project-compare-type: 'ANT'
321 project-pattern: '{project}'
323 - branch-compare-type: 'ANT'
324 branch-pattern: '**/{branch}'
326 - compare-type: 'ANT'
330 name: gerrit-trigger-release-manually
333 server-name: '{server}'
335 - comment-added-contains-event:
336 comment-contains-value: 'please release'
338 - project-compare-type: 'ANT'
339 project-pattern: '{project}'
341 - branch-compare-type: 'ANT'
342 branch-pattern: '**/{branch}'
344 - compare-type: 'ANT'
348 name: trigger-on-build-success
365 # This wrapper is required for all jobs as it configures the wrappers
366 # needed by the eCOMP infra.
372 timeout: '{build-timeout}'
373 timeout-var: 'BUILD_TIMEOUT'
375 - ssh-agent-credentials: