blob: 8fb7afef5b973dcb9ededcc1214ddddbb99483f4 [file] [log] [blame]
Andrew Grimbergebc710a2017-01-30 12:59:38 -08001---
2# Global macros
3
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -08004# vim: sw=2 ts=2 sts=2 et :
5
Andrew Grimbergebc710a2017-01-30 12:59:38 -08006# BUILDERS
7- builder:
Andrew Grimbergebc710a2017-01-30 12:59:38 -08008 name: provide-maven-settings
9 builders:
10 - config-file-provider:
11 files:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070012 - file-id: "{global-settings-file}"
13 variable: "GLOBAL_SETTINGS_FILE"
14 - file-id: "{settings-file}"
15 variable: "SETTINGS_FILE"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080016
Andrew Grimberg3aaa7d42017-02-24 12:51:11 -080017# call maven-target builder with a goal of --version to force Jenkins to
18# install the needed maven version
19- builder:
20 name: maven-install
21 builders:
22 - maven-target:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070023 maven-version: "{maven-version}"
24 goals: "--version"
Andrew Grimberg3aaa7d42017-02-24 12:51:11 -080025
Anaël Clossonabbafb52017-02-09 17:55:10 +010026- builder:
Gary Wu350fbcb2018-08-07 11:13:59 -070027 name: maven-set-release-version
28 builders:
29 - maven-target:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070030 maven-version: "{maven-version}"
31 pom: "{pom}"
32 goals: "versions:set versions:update-child-modules versions:commit -B"
Gary Wu350fbcb2018-08-07 11:13:59 -070033 properties:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070034 - "newVersion=${{release_version}}"
35 settings: "{mvn-settings}"
Gary Wu350fbcb2018-08-07 11:13:59 -070036 settings-type: cfp
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070037 global-settings: "global-settings"
Gary Wu350fbcb2018-08-07 11:13:59 -070038 global-settings-type: cfp
39
40- builder:
Anaël Clossonabbafb52017-02-09 17:55:10 +010041 name: maven-docker-push-release
42 builders:
43 - maven-target:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070044 maven-version: "{maven-version}"
45 pom: "{pom}"
46 goals: "clean deploy -B -P {mvn-profile}"
47 settings: "{mvn-settings}"
Anaël Clossonabbafb52017-02-09 17:55:10 +010048 settings-type: cfp
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070049 global-settings: "global-settings"
Anaël Clossonabbafb52017-02-09 17:55:10 +010050 global-settings-type: cfp
51 properties:
52 - maven.test.skip=true
Jeremy Phelps48028ab2017-03-28 15:38:24 -050053 - docker.pull.registry=nexus3.onap.org:10001
54 - docker.push.registry=nexus3.onap.org:10002
Anaël Clossonabbafb52017-02-09 17:55:10 +010055
56- builder:
57 name: maven-docker-push-daily
58 builders:
59 - maven-target:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070060 maven-version: "{maven-version}"
61 pom: "{pom}"
62 goals: "clean deploy -B -P {mvn-profile} {mvn-params}"
63 settings: "{mvn-settings}"
Anaël Clossonabbafb52017-02-09 17:55:10 +010064 settings-type: cfp
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070065 global-settings: "global-settings"
Anaël Clossonabbafb52017-02-09 17:55:10 +010066 global-settings-type: cfp
67 properties:
Jeremy Phelps48028ab2017-03-28 15:38:24 -050068 - docker.pull.registry=nexus3.onap.org:10001
69 - docker.push.registry=nexus3.onap.org:10003
Anaël Clossonabbafb52017-02-09 17:55:10 +010070
Anaël Closson63e090e2017-02-15 14:50:45 +010071- builder:
72 name: docker-login
73 builders:
74 - shell: !include-raw: include-docker-login.sh
75
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080076- builder:
77 name: publish-pypi
78 builders:
79 - inject:
80 properties-content: PYPI_SERVER={pypi-server}
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070081 - shell: !include-raw-escape: ../shell/pypi-publish.sh
Vanessa Rene Valderrama295975d2018-02-27 15:10:17 -080082
Andrew Grimbergebc710a2017-01-30 12:59:38 -080083# PARAMETERS
84- parameter:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -070085 name: infra-parameters
Andrew Grimbergebc710a2017-01-30 12:59:38 -080086 parameters:
87 - string:
88 name: PROJECT
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070089 default: "{project}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080090 # yamllint disable rule:line-length
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070091 description: "JJB configured PROJECT parameter to identify a Gerrit project"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080092 # yamllint enable
93 - string:
94 name: ARCHIVE_ARTIFACTS
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070095 default: "{artifacts} **/target/surefire-reports/*-output.txt"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080096 # yamllint disable rule:line-length
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -070097 description: "Space separated glob patterns for artifacts to archive to logs hosting"
Andrew Grimbergebc710a2017-01-30 12:59:38 -080098 # yamllint enable
99 - string:
100 name: GERRIT_BRANCH
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700101 default: "{branch}"
102 description: "JJB configured GERRIT_BRANCH parameter"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800103 - string:
104 name: GERRIT_PROJECT
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700105 default: "{project}"
106 description: "GERRIT_PROJECT parameter if not given by trigger"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800107 - string:
108 name: GERRIT_REFSPEC
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700109 default: "{refspec}"
110 description: "GERRIT_REFSPEC parameter if not given by trigger"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800111 - string:
112 name: STACK_NAME
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700113 default: "$JOB_NAME-$BUILD_NUMBER"
114 description: "Used by Heat to generate a unique stack & vm name"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800115
116- parameter:
Jessica Wagantalld25908c2018-03-28 12:06:39 -0700117 name: maven-params
118 parameters:
119 - string:
120 name: MAVEN_PARAMS
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700121 default: "{mvn-params}"
Jessica Wagantalld25908c2018-03-28 12:06:39 -0700122 description: Maven parameters to pass to the mvn command.
123
124- parameter:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800125 name: maven-exec
126 parameters:
127 - string:
128 name: MVN
129 # yamllint disable rule:line-length
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700130 default: "/w/tools/hudson.tasks.Maven_MavenInstallation/{maven-version}/bin/mvn"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800131 # yamllint enable
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700132 description: "Maven selector to be used by shell scripts"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800133
Gary Wudc3f2952017-08-23 16:48:59 -0700134- parameter:
135 name: docker-image-name
136 parameters:
137 - string:
138 name: DOCKER_IMAGE_NAME
139 # yamllint disable rule:line-length
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700140 default: "{docker-image-name}"
Gary Wudc3f2952017-08-23 16:48:59 -0700141 # yamllint enable
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700142 description: "Docker image name, e.g. onap/appc"
Gary Wudc3f2952017-08-23 16:48:59 -0700143
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800144# PROPERTIES
145- property:
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700146 name: infra-properties
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800147 properties:
148 - build-discarder:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700149 days-to-keep: "{build-days-to-keep}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800150 num-to-keep: 40
151 artifact-days-to-keep: -1
152 artifact-num-to-keep: 5
153
154# PUBLISHERS
155- publisher:
156 name: archive-artifacts
157 publishers:
158 - archive:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700159 artifacts: "{artifacts}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800160 allow-empty: true
161 fingerprint: true
162 latest-only: true
163
164- publisher:
165 name: email-notification
166 publishers:
167 - email-ext:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700168 recipients: "nobody@open-o.org"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800169 reply-to:
170 content-type: default
171 # yamllint disable rule:line-length
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700172 subject: "{email-prefix} $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS!"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800173 # yamllint enable
174 body: |
175 $PROJECT_NAME - Build # $BUILD_NUMBER - $BUILD_STATUS:
176
177 Check console output at $BUILD_URL to view the results.
178 unstable: true
179 fixed: true
180 send-to:
181 - developers
182 - recipients
183
184- publisher:
185 name: jacoco-report
186 publishers:
187 - jacoco:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700188 exec-pattern: "**/**.exec"
189 class-pattern: "**/classes"
190 source-pattern: "**/src/main/java"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800191 # yamllint disable rule:line-length
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700192 exclusion-pattern: "**/gen**,**/generated-sources/**,**/yang-gen**,**/pax/**"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800193 # yamllint enable
194 status-update: true
195 targets:
196 - branch:
197 healthy: 10
198 unhealthy: 20
199 - method:
200 healthy: 50
201 unhealthy: 40
202
203- publisher:
JulienBe77903ed2017-07-17 15:30:26 +0200204 name: checkstyle-result
205 publishers:
206 - checkstyle:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700207 pattern: "**/checkstyle-result.xml"
JulienBe77903ed2017-07-17 15:30:26 +0200208 healthy: 0
209 unhealthy: 100
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700210 health-threshold: "high"
JulienBe77903ed2017-07-17 15:30:26 +0200211 thresholds:
212 unstable:
213 total-all: 30
214 total-high: 15
215 total-normal: 20
216 total-low: 25
217 new-all: 5
218 new-high: 0
219 new-normal: 2
220 new-low: 5
221
222- publisher:
223 name: checkstyle-result-daily
224 publishers:
225 - checkstyle:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700226 pattern: "**/checkstyle-result.xml"
JulienBe77903ed2017-07-17 15:30:26 +0200227 healthy: 0
228 unhealthy: 100
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700229 health-threshold: "high"
JulienBe77903ed2017-07-17 15:30:26 +0200230 thresholds:
231 unstable:
232 total-all: 30
233 total-high: 15
234 total-normal: 20
235 total-low: 25
236 new-all: 1
237 new-high: 0
238 new-normal: 1
239 new-low: 1
240
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800241# SCMS
242- scm:
243 name: git-scm
244 scm:
245 - git:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700246 credentials-id: "onap-jenkins-ssh"
247 url: "$GIT_BASE"
248 refspec: ""
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800249 branches:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700250 - "origin/{branch}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800251 skip-tag: true
252 wipe-workspace: true
253 timeout: 30
254
255- scm:
256 name: gerrit-trigger-scm
257 scm:
258 - git:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700259 credentials-id: "onap-jenkins-ssh"
260 url: "$GIT_BASE"
261 refspec: "{refspec}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800262 branches:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700263 - "origin/$GERRIT_BRANCH"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800264 skip-tag: true
265 timeout: 30
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700266 choosing-strategy: "{choosing-strategy}"
Jeremy Phelps2c76e492017-07-12 13:45:40 -0500267 submodule:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700268 recursive: "{submodule-recursive}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800269
270- scm:
271 name: gerrit-trigger-scm-basedir
272 scm:
273 - git:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700274 credentials-id: "onap-jenkins-ssh"
275 url: "$GIT_BASE"
276 refspec: "{refspec}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800277 branches:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700278 - "origin/$GERRIT_BRANCH"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800279 skip-tag: true
280 timeout: 30
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700281 choosing-strategy: "{choosing-strategy}"
282 basedir: "{basedir}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800283
284- scm:
285 name: git-branch-scm
286 scm:
287 - git:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700288 credentials-id: "onap-jenkins-ssh"
289 url: "$GIT_BASE"
290 refspec: ""
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800291 branches:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700292 - "origin/{branch}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800293 skip-tag: true
294 timeout: 30
295 wipe-workspace: true
296
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800297- scm:
298 name: git-extra-project
299 scm:
300 - git:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700301 credentials-id: "onap-jenkins-ssh"
302 url: "$GIT_NO_PROJECT/{project}"
303 refspec: "{refspec}"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800304 branches:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700305 - "origin/{branch}"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800306 skip-tag: true
307 timeoute: 30
308 wipe-workspace: false
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700309 basedir: "{checkout-dir}"
Andrew Grimberg1ac7c2d2017-02-08 12:40:56 -0800310
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800311# TRIGGERS
312
313# This is a single macro to use for all jobs who vote on every (relevant) patch
314# set. Only 'recheck' trigger word is supported, it always triggers the full set
315# of relevant jobs, in order to prevent Jenkins from starting only a subset and
316# still voting Verified+1
317# Arguments:
318# server: name of gerrit server to listen to
319# project: pattern to match triggering projects
320# branch: triggering branch name
321# files: pattern to match triggering filepaths
322- trigger:
323 name: gerrit-trigger-patch-submitted
324 triggers:
325 - gerrit:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700326 server-name: "{server}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800327 trigger-on:
328 - patchset-created-event:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700329 exclude-drafts: "false"
330 exclude-trivial-rebase: "false"
331 exclude-no-code-change: "false"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800332 - draft-published-event
333 - comment-added-contains-event:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700334 comment-contains-value: "recheck"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800335 projects:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700336 - project-compare-type: "ANT"
337 project-pattern: "{project}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800338 branches:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700339 - branch-compare-type: "ANT"
340 branch-pattern: "**/{branch}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800341 file-paths:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700342 - compare-type: "ANT"
343 pattern: "{files}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800344
345- trigger:
346 name: gerrit-trigger-patch-merged
347 triggers:
348 - gerrit:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700349 server-name: "{server}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800350 trigger-on:
351 - change-merged-event
352 - comment-added-contains-event:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700353 comment-contains-value: "remerge"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800354 projects:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700355 - project-compare-type: "ANT"
356 project-pattern: "{project}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800357 branches:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700358 - branch-compare-type: "ANT"
359 branch-pattern: "**/{branch}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800360 file-paths:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700361 - compare-type: "ANT"
362 pattern: "{files}"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800363
JulienBe0d8c2c32017-02-16 11:50:48 -0800364- trigger:
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500365 name: gerrit-trigger-helm-patch-submitted
366 triggers:
367 - gerrit:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700368 server-name: "{server}"
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500369 trigger-on:
370 - patchset-created-event:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700371 exclude-drafts: "false"
372 exclude-no-code-change: "false"
373 exclude-trivial-rebase: "false"
374 exclude-wip: "true"
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500375 - draft-published-event
376 - comment-added-contains-event:
Jessica Wagantall65198c82020-03-24 09:57:03 -0700377 comment-contains-value: '^Patch Set\s+\d+:\s+(recheck|reverify|verify-helm)\s*$'
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500378 projects:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700379 - project-compare-type: "ANT"
380 project-pattern: "{project}"
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500381 branches:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700382 - branch-compare-type: "ANT"
383 branch-pattern: "**/{branch}"
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500384 file-paths:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700385 - compare-type: "ANT"
386 pattern: "{files}"
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500387
388- trigger:
389 name: gerrit-trigger-helm-patch-merged
390 triggers:
391 - gerrit:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700392 server-name: "{server}"
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500393 trigger-on:
394 - change-merged-event
395 - comment-added-contains-event:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700396 comment-contains-value: "^remerge-helm$"
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500397 projects:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700398 - project-compare-type: "ANT"
399 project-pattern: "{project}"
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500400 branches:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700401 - branch-compare-type: "ANT"
402 branch-pattern: "**/{branch}"
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500403 file-paths:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700404 - compare-type: "ANT"
405 pattern: "{files}"
Jeremy Phelpsd73b2142018-08-27 15:26:11 -0500406
407- trigger:
JulienBe0d8c2c32017-02-16 11:50:48 -0800408 name: gerrit-trigger-release-manually
409 triggers:
410 - gerrit:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700411 server-name: "{server}"
JulienBe0d8c2c32017-02-16 11:50:48 -0800412 trigger-on:
413 - comment-added-contains-event:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700414 comment-contains-value: "please release"
JulienBe0d8c2c32017-02-16 11:50:48 -0800415 projects:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700416 - project-compare-type: "ANT"
417 project-pattern: "{project}"
JulienBe0d8c2c32017-02-16 11:50:48 -0800418 branches:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700419 - branch-compare-type: "ANT"
420 branch-pattern: "**/{branch}"
JulienBe0d8c2c32017-02-16 11:50:48 -0800421 file-paths:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700422 - compare-type: "ANT"
423 pattern: "**"
JulienBe0d8c2c32017-02-16 11:50:48 -0800424
Anaël Clossonadcb39d2017-03-10 15:39:09 +0100425- trigger:
426 name: trigger-on-build-success
427 triggers:
Anaël Closson41ddffd2017-03-13 13:39:57 +0100428 - reverse:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700429 jobs: "{job-name}"
430 result: "success"
Anaël Clossonadcb39d2017-03-10 15:39:09 +0100431
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800432# WRAPPERS
433- wrapper:
434 name: build-timeout
435 wrappers:
436 - timeout:
437 type: absolute
438 timeout: 360
439 fail: true
440
441- wrapper:
Kiran Kamineni9655e0f2018-10-23 16:53:34 -0700442 name: golang110
Kiran Kamineni85b44e82018-03-21 11:14:29 -0700443 wrappers:
444 - raw:
445 xml: |
446 <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2">
447 <goVersion>Golang 1.10</goVersion>
448 </org.jenkinsci.plugins.golang.GolangBuildWrapper>
449
450- wrapper:
Kiran Kamineni9655e0f2018-10-23 16:53:34 -0700451 name: golang111
452 wrappers:
453 - raw:
454 xml: |
455 <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2">
456 <goVersion>Golang 1.11</goVersion>
457 </org.jenkinsci.plugins.golang.GolangBuildWrapper>
458
459- wrapper:
Kiran Kamineni64cbb962019-04-25 12:21:26 -0700460 name: golang112
461 wrappers:
462 - raw:
463 xml: |
464 <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2">
465 <goVersion>Golang 1.12</goVersion>
466 </org.jenkinsci.plugins.golang.GolangBuildWrapper>
467
468- wrapper:
Larry Sachsbfeb7122020-06-30 08:42:20 -0700469 name: golang114
470 wrappers:
471 - raw:
472 xml: |
Larry Sachs5561c722020-07-07 17:46:25 -0700473 <org.jenkinsci.plugins.golang.GolangBuildWrapper plugin="golang@1.2">
Larry Sachsbfeb7122020-06-30 08:42:20 -0700474 <goVersion>Golang 1.14</goVersion>
475 </org.jenkinsci.plugins.golang.GolangBuildWrapper>
476
477- wrapper:
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800478 # This wrapper is required for all jobs as it configures the wrappers
479 # needed by the eCOMP infra.
Andrew Grimberg4307a1c2017-03-16 13:00:00 -0700480 name: infra-wrappers
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800481 wrappers:
Jessica Wagantall4fecf312017-04-25 11:40:31 -0700482 - timestamps
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800483 - timeout:
484 type: absolute
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700485 timeout: "{build-timeout}"
486 timeout-var: "BUILD_TIMEOUT"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800487 fail: true
488 - ssh-agent-credentials:
489 users:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700490 - "onap-jenkins-ssh"
Andrew Grimbergebc710a2017-01-30 12:59:38 -0800491 - openstack:
492 single-use: true
gwuadeda5a2018-07-17 14:12:09 -0700493
494- wrapper:
495 # This wrapper is used for docker build jobs to use the dedicated docker
496 # build VM and turn off OpenStack single-use
497 name: infra-wrappers-docker-build
498 wrappers:
499 - timestamps
500 - timeout:
501 type: absolute
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700502 timeout: "{build-timeout}"
503 timeout-var: "BUILD_TIMEOUT"
gwuadeda5a2018-07-17 14:12:09 -0700504 fail: true
505 - ssh-agent-credentials:
506 users:
Andrew Grimbergc1f3caf2023-05-03 09:25:07 -0700507 - "onap-jenkins-ssh"
gwuadeda5a2018-07-17 14:12:09 -0700508 - openstack:
509 single-use: false