blob: 292329179f5f1cffb9f34fd2b2b8e99f5a11f6bd [file] [log] [blame]
Gary Wu0bb72f52017-07-13 12:32:14 -07001---
2- job-template:
3 name: '{project-name}-{stream}-verify-csit-{functionality}'
Jessica Wagantall83656992019-09-06 11:26:55 -07004 disabled: '{disabled}'
Gary Wu0bb72f52017-07-13 12:32:14 -07005
6 project-type: freestyle
Bengt Thureede7d1a22022-09-30 00:24:40 +10007 build-node: 'ubuntu1804-docker-8c-8g'
Gary Wu0bb72f52017-07-13 12:32:14 -07008 node: '{build-node}'
Jessica Wagantall488a3502019-11-04 18:47:05 -08009 recipients: ''
Anil Belur266230d2020-01-26 10:33:47 +100010 java-version: 'openjdk11'
Lasse Kaihlavirta46e537c2020-11-04 19:54:26 +020011 python-version: python3
Gary Wu0bb72f52017-07-13 12:32:14 -070012
13 properties:
14 - lf-infra-properties:
Gary Wub3440442018-09-27 10:47:38 -070015 project: 'integration/csit'
Gary Wu0bb72f52017-07-13 12:32:14 -070016 build-days-to-keep: '{build-days-to-keep}'
17
18 parameters:
19 - infra-parameters:
Gary Wub3440442018-09-27 10:47:38 -070020 project: 'integration/csit'
Gary Wu0bb72f52017-07-13 12:32:14 -070021 branch: '{branch}'
22 refspec: 'refs/heads/{branch}'
23 artifacts: '{archive-artifacts}'
24 - integration-test-plan:
25 test-plan: 'plans/{project-name}/{functionality}'
26 - integration-test-options:
27 test-options: '{robot-options}'
28
29 scm:
30 - gerrit-trigger-scm:
31 refspec: '$GERRIT_REFSPEC'
32 choosing-strategy: 'gerrit'
33 submodule-recursive: '{submodule-recursive}'
34
35 wrappers:
36 - lf-infra-wrappers:
37 build-timeout: '{build-timeout}'
38 jenkins-ssh-credential: '{jenkins-ssh-credential}'
39
40 triggers:
41 - gerrit-trigger-patch-submitted:
42 server: '{server-name}'
Gary Wub3440442018-09-27 10:47:38 -070043 project: 'integration/csit'
Gary Wu0bb72f52017-07-13 12:32:14 -070044 branch: '{branch}'
Lasse Kaihlavirta8ab64272021-02-03 17:45:25 +020045 files: '*/{project-name}/**'
Gary Wu0bb72f52017-07-13 12:32:14 -070046
47 builders:
Anil Belur266230d2020-01-26 10:33:47 +100048 - lf-update-java-alternatives:
49 java-version: '{java-version}'
Gary Wu0bb72f52017-07-13 12:32:14 -070050 - integration-install-robotframework
Matthew Watkins1e554392022-11-15 16:03:54 -080051 - integration-install-robotframework-py3
Gary Wu0bb72f52017-07-13 12:32:14 -070052 - inject:
53 properties-file: 'env.properties'
54 - integration-run-test
55
56 publishers:
57 - integration-robot:
58 unstable-if: 0.0
59 pass-if: 100.0
60 - lf-infra-publish
Jessica Wagantall488a3502019-11-04 18:47:05 -080061 - email:
62 recipients: '{recipients}'
63 notify-every-unstable-build: false
64 send-to-individuals: true
Gary Wu0bb72f52017-07-13 12:32:14 -070065
66- job-template:
67 name: '{project-name}-{stream}-csit-{functionality}'
Jessica Wagantall83656992019-09-06 11:26:55 -070068 disabled: '{disabled}'
Gary Wu0bb72f52017-07-13 12:32:14 -070069
70 project-type: freestyle
Bengt Thureede7d1a22022-09-30 00:24:40 +100071 build-node: 'ubuntu1804-docker-8c-8g'
Gary Wu0bb72f52017-07-13 12:32:14 -070072 node: '{build-node}'
Jessica Wagantall488a3502019-11-04 18:47:05 -080073 recipients: ''
Anil Belur266230d2020-01-26 10:33:47 +100074 java-version: 'openjdk11'
Lasse Kaihlavirta46e537c2020-11-04 19:54:26 +020075 python-version: python3
Gary Wu0bb72f52017-07-13 12:32:14 -070076
77 properties:
78 - lf-infra-properties:
Gary Wub3440442018-09-27 10:47:38 -070079 project: 'integration/csit'
Gary Wu0bb72f52017-07-13 12:32:14 -070080 build-days-to-keep: '{build-days-to-keep}'
81
82 parameters:
83 - infra-parameters:
Gary Wub3440442018-09-27 10:47:38 -070084 project: 'integration/csit'
Gary Wu0bb72f52017-07-13 12:32:14 -070085 branch: '{branch}'
86 refspec: 'refs/heads/{branch}'
87 artifacts: '{archive-artifacts}'
88 - integration-test-plan:
89 test-plan: 'plans/{project-name}/{functionality}'
90 - integration-test-options:
91 test-options: '{robot-options}'
92
93 scm:
94 - gerrit-trigger-scm:
95 refspec: ''
96 choosing-strategy: 'default'
97 submodule-recursive: '{submodule-recursive}'
98
99 wrappers:
100 - lf-infra-wrappers:
101 build-timeout: '{build-timeout}'
102 jenkins-ssh-credential: '{jenkins-ssh-credential}'
103
104 triggers:
105 - gerrit-trigger-patch-merged:
106 server: '{server-name}'
Gary Wub3440442018-09-27 10:47:38 -0700107 project: 'integration/csit'
Gary Wu0bb72f52017-07-13 12:32:14 -0700108 branch: '{branch}'
Lasse Kaihlavirta8ab64272021-02-03 17:45:25 +0200109 files: '*/{project-name}/**'
Gary Wu0bb72f52017-07-13 12:32:14 -0700110 - timed: '@daily'
111 - reverse:
112 jobs: '{obj:trigger_jobs}'
113
114 builders:
Lasse Kaihlavirta46e537c2020-11-04 19:54:26 +0200115 - lf-infra-pre-build
Anil Belur266230d2020-01-26 10:33:47 +1000116 - lf-update-java-alternatives:
117 java-version: '{java-version}'
Gary Wu0bb72f52017-07-13 12:32:14 -0700118 - integration-install-robotframework
119 - inject:
120 properties-file: 'env.properties'
121 - integration-run-test
122
123 publishers:
124 - integration-robot:
125 unstable-if: 0.0
126 pass-if: 100.0
127 - lf-infra-publish
Jessica Wagantall488a3502019-11-04 18:47:05 -0800128 - email:
129 recipients: '{recipients}'
130 notify-every-unstable-build: false
131 send-to-individuals: true
Yuli Shlosberg6edd8ba2017-11-30 18:00:27 +0200132
Lasse Kaihlavirta27499e42021-02-02 12:07:02 +0200133- verification_maven_job_boiler_plate: &verification_maven_job_boiler_plate
134 name: verification_maven_job_boiler_plate
135
136 ######################
137 # Default parameters #
138 ######################
139
140 branch: master
ChrisC5b8de522021-02-16 15:51:43 +0100141 build-concurrent: false
Lasse Kaihlavirta27499e42021-02-02 12:07:02 +0200142 build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
Bengt Thureede7d1a22022-09-30 00:24:40 +1000143 build-node: ubuntu1804-docker-8c-8g
Lasse Kaihlavirta27499e42021-02-02 12:07:02 +0200144 build-timeout: 60
145 container-public-registry: 'nexus3.onap.org:10001'
146 git-url: "$GIT_URL/$PROJECT"
147 github-url: "https://github.com"
148 maven-versions-plugin: false
149 version-properties-file: version.properties
150 mvn-central: false
151 mvn-global-settings: global-settings
152 mvn-goals: clean deploy
153 mvn-opts: ""
154 mvn-pom: ""
155 mvn-version: mvn36
156 stream: master
157 submodule-recursive: true
158 submodule-timeout: 10
159 submodule-disable: false
160
161 disabled: '{disabled}'
162 archive-artifacts: >
163 **/*.log
164 **/hs_err_*.log
165 **/target/**/feature.xml
166 **/target/failsafe-reports/failsafe-summary.xml
167 **/target/surefire-reports/*-output.txt
168
169 project-type: freestyle
170 node: '{build-node}'
171 java-version: 'openjdk11'
172
173 #####################
174 # Job Configuration #
175 #####################
ChrisC5b8de522021-02-16 15:51:43 +0100176 concurrent: "{build-concurrent}"
Lasse Kaihlavirta27499e42021-02-02 12:07:02 +0200177 properties:
178 - lf-infra-properties:
179 project: '{project}'
180 build-days-to-keep: '{build-days-to-keep}'
181 parameters:
182 - infra-parameters:
183 project: '{project}'
184 branch: '{branch}'
185 refspec: 'refs/heads/{branch}'
186 artifacts: '{archive-artifacts}'
187 - lf-infra-maven-parameters:
188 mvn-opts: "{mvn-opts}"
189 mvn-params: "{mvn-params}"
190 mvn-version: "{mvn-version}"
191 - string:
192 name: ARCHIVE_ARTIFACTS
193 default: "{archive-artifacts}"
194 description: Artifacts to archive to the logs server.
195 - integration-test-options:
196 test-options: '{robot-options}'
197 wrappers:
198 - lf-infra-wrappers:
199 build-timeout: '{build-timeout}'
200 jenkins-ssh-credential: '{jenkins-ssh-credential}'
201 builders:
202 - lf-infra-pre-build
203 - lf-jacoco-nojava-workaround
204 - lf-maven-install:
205 mvn-version: "{mvn-version}"
206 - lf-update-java-alternatives:
207 java-version: "{java-version}"
208 - lf-infra-docker-login:
209 global-settings-file: "{mvn-global-settings}"
210 settings-file: "{mvn-settings}"
211 # must provide maven settings AFTER docker-login due to its cleanup
212 - lf-provide-maven-settings:
213 global-settings-file: "{mvn-global-settings}"
214 settings-file: "{mvn-settings}"
215 - lf-maven-versions-plugin:
216 maven-versions-plugin: "{maven-versions-plugin}"
217 version-properties-file: "{version-properties-file}"
218 mvn-version: "{mvn-version}"
219 mvn-pom: "{mvn-pom}"
220 mvn-settings: "{mvn-settings}"
221 - inject:
222 properties-content: |
223 CONTAINER_PULL_REGISTRY={container-public-registry}
224 - lf-maven-build:
225 mvn-goals: "{mvn-goals}"
226 - integration-install-robotframework
227 - inject:
228 properties-file: 'env.properties'
229 - integration-run-project-test
230 - lf-provide-maven-settings-cleanup
231 publishers:
Lasse Kaihlavirta32ebb462021-02-24 11:44:37 +0200232 - integration-project-robot:
Lasse Kaihlavirta5b017332021-02-23 19:19:32 +0200233 unstable-if: 0.0
234 pass-if: 100.0
Lasse Kaihlavirta27499e42021-02-02 12:07:02 +0200235 - lf-infra-publish
Lasse Kaihlavirta5b017332021-02-23 19:19:32 +0200236 - email:
237 recipients: '{recipients}'
238 notify-every-unstable-build: false
239 send-to-individuals: true
Lasse Kaihlavirta27499e42021-02-02 12:07:02 +0200240
Lasse Kaihlavirtaf8191142020-11-11 19:27:57 +0200241- job-template:
Lasse Kaihlavirta73824ee2021-01-15 19:01:56 +0200242 # Job template for unified review verification jobs in
243 # project-specific CSIT flow for projects built with maven
244 #
245 # The purpose of this job template is to:
246 # 1. build local snapshot docker images with maven
247 # 2. run CSIT job with the local images
248 # 3. give a verify vote to the triggering review
249 #
250
251 name: '{project-name}-review-verification-maven-{stream}'
252
Lasse Kaihlavirta27499e42021-02-02 12:07:02 +0200253 <<: *verification_maven_job_boiler_plate
Lasse Kaihlavirta73824ee2021-01-15 19:01:56 +0200254
255 scm:
256 - gerrit-trigger-scm:
257 refspec: '$GERRIT_REFSPEC'
258 choosing-strategy: 'gerrit'
259 submodule-recursive: '{submodule-recursive}'
Lasse Kaihlavirta73824ee2021-01-15 19:01:56 +0200260 triggers:
261 - gerrit-trigger-patch-submitted:
262 server: '{server-name}'
263 project: '{project}'
264 branch: '{branch}'
265 files: '**'
Lasse Kaihlavirta73824ee2021-01-15 19:01:56 +0200266
267- job-template:
Lasse Kaihlavirta4ea05d22021-01-22 14:12:56 +0200268 # Job template for unified merge verification jobs in
269 # project-specific CSIT flow for projects built with maven
270 #
271 # The purpose of this job template is to:
272 # 1. build local snapshot docker images from master with maven
273 # 2. run CSIT job with the local images
274 #
275
276 name: '{project-name}-merge-verification-maven-{stream}'
277
Lasse Kaihlavirta27499e42021-02-02 12:07:02 +0200278 <<: *verification_maven_job_boiler_plate
Lasse Kaihlavirta4ea05d22021-01-22 14:12:56 +0200279
280 scm:
281 - gerrit-trigger-scm:
282 refspec: ''
283 choosing-strategy: 'default'
284 submodule-recursive: '{submodule-recursive}'
Lasse Kaihlavirta4ea05d22021-01-22 14:12:56 +0200285 triggers:
286 - gerrit-trigger-patch-merged:
287 server: '{server-name}'
288 project: '{project}'
289 branch: '{branch}'
290 files: '**'