6 name: ci-management-check-unicode
9 $WORKSPACE/scripts/check-unicode.sh jjb/
12 name: provide-maven-settings
14 - config-file-provider:
16 - file-id: '{global-settings-file}'
17 variable: 'GLOBAL_SETTINGS_FILE'
18 - file-id: '{settings-file}'
19 variable: 'SETTINGS_FILE'
23 name: ecomp-infra-parameters
28 # yamllint disable rule:line-length
29 description: 'JJB configured PROJECT parameter to identify a Gerrit project'
32 name: ARCHIVE_ARTIFACTS
33 default: '{artifacts} **/target/surefire-reports/*-output.txt'
34 # yamllint disable rule:line-length
35 description: 'Space separated glob patterns for artifacts to archive to logs hosting'
40 description: 'JJB configured GERRIT_BRANCH parameter'
44 description: 'GERRIT_PROJECT parameter if not given by trigger'
48 description: 'GERRIT_REFSPEC parameter if not given by trigger'
51 default: '$JOB_NAME-$BUILD_NUMBER'
52 description: 'Used by Heat to generate a unique stack & vm name'
59 # yamllint disable rule:line-length
60 default: '/w/tools/hudson.tasks.Maven_MavenInstallation/{maven-version}/bin/mvn'
62 description: 'Maven selector to be used by shell scripts'
66 name: ecomp-infra-properties
69 days-to-keep: '{build-days-to-keep}'
71 artifact-days-to-keep: -1
72 artifact-num-to-keep: 5
76 name: archive-artifacts
79 artifacts: '{artifacts}'
85 name: email-notification
88 recipients: 'nobody@open-o.org'
91 # yamllint disable rule:line-length
92 subject: '{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!'
95 $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
97 Check console output at $BUILD_URL to view the results.
108 exec-pattern: '**/**.exec'
109 class-pattern: '**/classes'
110 source-pattern: '**/src/main/java'
111 # yamllint disable rule:line-length
112 exclusion-pattern: '**/gen**,**/generated-sources/**,**/yang-gen**,**/pax/**'
124 name: ecomp-infra-shiplogs
125 # To archive things, the job will need to create an "archives" directory in
126 # the workspace and this macro will handle copying the contents of the
127 # archives directory.
129 # Uses the build parameter ARCHIVE_ARTIFACTS if not empty to find files to
130 # archive. You can pass globstar patterns for example "**/*.xml **/*.log" as
131 # the archive pattern. This is a space separated list of files to archive.
133 # Also ensure that the workspace is cleaned up at the end of the build.
137 - shell: !include-raw: include-raw-deploy-archives.sh
139 maven-version: '{maven-version}'
140 pom: '.archives/deploy-archives.xml'
141 goals: 'clean deploy -V -B -q -Dmaven.repo.local=/tmp/r'
142 settings: 'jenkins-log-archives-settings'
144 global-settings: 'global-settings'
145 global-settings-type: cfp
146 - description-setter:
147 regexp: '^Build logs: .*'
148 script-only-if-succeeded: false
149 script-only-if-failed: false
150 mark-unstable-if-failed: true
159 credentials-id: 'ecomp-jenkins-ssh'
169 name: gerrit-trigger-scm
172 credentials-id: 'ecomp-jenkins-ssh'
176 - 'origin/$GERRIT_BRANCH'
179 choosing-strategy: '{choosing-strategy}'
182 name: gerrit-trigger-scm-basedir
185 credentials-id: 'ecomp-jenkins-ssh'
189 - 'origin/$GERRIT_BRANCH'
192 choosing-strategy: '{choosing-strategy}'
199 credentials-id: 'ecomp-jenkins-ssh'
210 # This is a single macro to use for all jobs who vote on every (relevant) patch
211 # set. Only 'recheck' trigger word is supported, it always triggers the full set
212 # of relevant jobs, in order to prevent Jenkins from starting only a subset and
213 # still voting Verified+1
215 # server: name of gerrit server to listen to
216 # project: pattern to match triggering projects
217 # branch: triggering branch name
218 # files: pattern to match triggering filepaths
220 name: gerrit-trigger-patch-submitted
223 server-name: '{server}'
225 - patchset-created-event:
226 exclude-drafts: 'false'
227 exclude-trivial-rebase: 'false'
228 exclude-no-code-change: 'false'
229 - draft-published-event
230 - comment-added-contains-event:
231 comment-contains-value: 'recheck'
233 - project-compare-type: 'ANT'
234 project-pattern: '{project}'
236 - branch-compare-type: 'ANT'
237 branch-pattern: '**/{branch}'
239 - compare-type: 'ANT'
243 name: gerrit-trigger-patch-merged
246 server-name: '{server}'
248 - change-merged-event
249 - comment-added-contains-event:
250 comment-contains-value: 'remerge'
252 - project-compare-type: 'ANT'
253 project-pattern: '{project}'
255 - branch-compare-type: 'ANT'
256 branch-pattern: '**/{branch}'
258 - compare-type: 'ANT'
271 # This wrapper is required for all jobs as it configures the wrappers
272 # needed by the eCOMP infra.
273 name: ecomp-infra-wrappers
277 timeout: '{build-timeout}'
278 timeout-var: 'BUILD_TIMEOUT'
280 - ssh-agent-credentials:
282 - 'ecomp-jenkins-ssh'