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'
25 name: ecomp-infra-parameters
30 # yamllint disable rule:line-length
31 description: 'JJB configured PROJECT parameter to identify a Gerrit project'
34 name: ARCHIVE_ARTIFACTS
35 default: '{artifacts} **/target/surefire-reports/*-output.txt'
36 # yamllint disable rule:line-length
37 description: 'Space separated glob patterns for artifacts to archive to logs hosting'
42 description: 'JJB configured GERRIT_BRANCH parameter'
46 description: 'GERRIT_PROJECT parameter if not given by trigger'
50 description: 'GERRIT_REFSPEC parameter if not given by trigger'
53 default: '$JOB_NAME-$BUILD_NUMBER'
54 description: 'Used by Heat to generate a unique stack & vm name'
61 # yamllint disable rule:line-length
62 default: '/w/tools/hudson.tasks.Maven_MavenInstallation/{maven-version}/bin/mvn'
64 description: 'Maven selector to be used by shell scripts'
68 name: ecomp-infra-properties
71 days-to-keep: '{build-days-to-keep}'
73 artifact-days-to-keep: -1
74 artifact-num-to-keep: 5
78 name: archive-artifacts
81 artifacts: '{artifacts}'
87 name: email-notification
90 recipients: 'nobody@open-o.org'
93 # yamllint disable rule:line-length
94 subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
97 $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
99 Check console output at $BUILD_URL to view the results.
110 exec-pattern: '**/**.exec'
111 class-pattern: '**/classes'
112 source-pattern: '**/src/main/java'
113 # yamllint disable rule:line-length
114 exclusion-pattern: '**/gen**,**/generated-sources/**,**/yang-gen**,**/pax/**'
126 name: ecomp-infra-shiplogs
127 # To archive things, the job will need to create an "archives" directory in
128 # the workspace and this macro will handle copying the contents of the
129 # archives directory.
131 # Uses the build parameter ARCHIVE_ARTIFACTS if not empty to find files to
132 # archive. You can pass globstar patterns for example "**/*.xml **/*.log" as
133 # the archive pattern. This is a space separated list of files to archive.
135 # Also ensure that the workspace is cleaned up at the end of the build.
139 - shell: !include-raw: include-raw-deploy-archives.sh
141 maven-version: '{maven-version}'
142 pom: '.archives/deploy-archives.xml'
143 goals: 'clean deploy -V -B -q -Dmaven.repo.local=/tmp/r'
144 settings: 'jenkins-log-archives-settings'
146 global-settings: 'global-settings'
147 global-settings-type: cfp
148 - description-setter:
149 regexp: '^Build logs: .*'
150 script-only-if-succeeded: false
151 script-only-if-failed: false
152 mark-unstable-if-failed: true
161 credentials-id: 'ecomp-jenkins-ssh'
171 name: gerrit-trigger-scm
174 credentials-id: 'ecomp-jenkins-ssh'
178 - 'origin/$GERRIT_BRANCH'
181 choosing-strategy: '{choosing-strategy}'
184 name: gerrit-trigger-scm-basedir
187 credentials-id: 'ecomp-jenkins-ssh'
191 - 'origin/$GERRIT_BRANCH'
194 choosing-strategy: '{choosing-strategy}'
201 credentials-id: 'ecomp-jenkins-ssh'
211 name: git-extra-project
214 credentials-id: 'ecomp-jenkins-ssh'
215 url: '$GIT_NO_PROJECT/{project}'
221 wipe-workspace: false
222 basedir: '{checkout-dir}'
227 # This is a single macro to use for all jobs who vote on every (relevant) patch
228 # set. Only 'recheck' trigger word is supported, it always triggers the full set
229 # of relevant jobs, in order to prevent Jenkins from starting only a subset and
230 # still voting Verified+1
232 # server: name of gerrit server to listen to
233 # project: pattern to match triggering projects
234 # branch: triggering branch name
235 # files: pattern to match triggering filepaths
237 name: gerrit-trigger-patch-submitted
240 server-name: '{server}'
242 - patchset-created-event:
243 exclude-drafts: 'false'
244 exclude-trivial-rebase: 'false'
245 exclude-no-code-change: 'false'
246 - draft-published-event
247 - comment-added-contains-event:
248 comment-contains-value: 'recheck'
250 - project-compare-type: 'ANT'
251 project-pattern: '{project}'
253 - branch-compare-type: 'ANT'
254 branch-pattern: '**/{branch}'
256 - compare-type: 'ANT'
260 name: gerrit-trigger-patch-merged
263 server-name: '{server}'
265 - change-merged-event
266 - comment-added-contains-event:
267 comment-contains-value: 'remerge'
269 - project-compare-type: 'ANT'
270 project-pattern: '{project}'
272 - branch-compare-type: 'ANT'
273 branch-pattern: '**/{branch}'
275 - compare-type: 'ANT'
288 # This wrapper is required for all jobs as it configures the wrappers
289 # needed by the eCOMP infra.
290 name: ecomp-infra-wrappers
294 timeout: '{build-timeout}'
295 timeout-var: 'BUILD_TIMEOUT'
297 - ssh-agent-credentials:
299 - 'ecomp-jenkins-ssh'