3 name: '{project-name}-{stream}-verify-csit-{functionality}'
6 project-type: freestyle
7 build-node: 'ubuntu1804-docker-8c-8g'
10 java-version: 'openjdk11'
11 python-version: python3
14 - lf-infra-properties:
15 project: 'integration/csit'
16 build-days-to-keep: '{build-days-to-keep}'
20 project: 'integration/csit'
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}'
31 refspec: '$GERRIT_REFSPEC'
32 choosing-strategy: 'gerrit'
33 submodule-recursive: '{submodule-recursive}'
37 build-timeout: '{build-timeout}'
38 jenkins-ssh-credential: '{jenkins-ssh-credential}'
41 - gerrit-trigger-patch-submitted:
42 server: '{server-name}'
43 project: 'integration/csit'
45 files: '**/{project-name}/**'
48 - lf-update-java-alternatives:
49 java-version: '{java-version}'
50 - integration-install-robotframework
52 properties-file: 'env.properties'
53 - integration-run-test
61 recipients: '{recipients}'
62 notify-every-unstable-build: false
63 send-to-individuals: true
66 name: '{project-name}-{stream}-csit-{functionality}'
67 disabled: '{disabled}'
69 project-type: freestyle
70 build-node: 'ubuntu1804-docker-8c-8g'
73 java-version: 'openjdk11'
74 python-version: python3
77 - lf-infra-properties:
78 project: 'integration/csit'
79 build-days-to-keep: '{build-days-to-keep}'
83 project: 'integration/csit'
85 refspec: 'refs/heads/{branch}'
86 artifacts: '{archive-artifacts}'
87 - integration-test-plan:
88 test-plan: 'plans/{project-name}/{functionality}'
89 - integration-test-options:
90 test-options: '{robot-options}'
95 choosing-strategy: 'default'
96 submodule-recursive: '{submodule-recursive}'
100 build-timeout: '{build-timeout}'
101 jenkins-ssh-credential: '{jenkins-ssh-credential}'
104 - gerrit-trigger-patch-merged:
105 server: '{server-name}'
106 project: 'integration/csit'
108 files: '**/{project-name}/**'
111 jobs: '{obj:trigger_jobs}'
115 - lf-update-java-alternatives:
116 java-version: '{java-version}'
117 - integration-install-robotframework
119 properties-file: 'env.properties'
120 - integration-run-test
128 recipients: '{recipients}'
129 notify-every-unstable-build: false
130 send-to-individuals: true
133 # Job template for project-specific CSIT jobs
135 # The purpose of this job template is to execute
136 # project-specific CSIT test cases for docker image versions
137 # identified by unique docker tag input parameter
140 name: '{project-name}-{stream}-project-csit'
141 disabled: '{disabled}'
142 project-type: freestyle
143 build-node: 'ubuntu1804-docker-8c-8g'
146 java-version: 'openjdk11'
147 python-version: python3
150 - lf-infra-properties:
152 build-days-to-keep: '{build-days-to-keep}'
158 refspec: 'refs/heads/{branch}'
159 artifacts: '{archive-artifacts}'
160 - integration-test-options:
161 test-options: '{robot-options}'
164 - gerrit-trigger-scm:
165 refspec: '$GERRIT_REFSPEC'
166 choosing-strategy: 'gerrit'
167 submodule-recursive: '{submodule-recursive}'
171 build-timeout: '{build-timeout}'
172 jenkins-ssh-credential: '{jenkins-ssh-credential}'
176 - lf-update-java-alternatives:
177 java-version: '{java-version}'
178 - integration-install-robotframework
180 properties-file: 'env.properties'
181 - integration-run-project-test
184 - integration-project-robot:
189 recipients: '{recipients}'
190 notify-every-unstable-build: false
191 send-to-individuals: true
193 - verification_maven_job_boiler_plate: &verification_maven_job_boiler_plate
194 name: verification_maven_job_boiler_plate
196 ######################
197 # Default parameters #
198 ######################
201 build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
202 build-node: ubuntu1804-docker-8c-8g
204 container-public-registry: 'nexus3.onap.org:10001'
205 git-url: "$GIT_URL/$PROJECT"
206 github-url: "https://github.com"
207 maven-versions-plugin: false
208 version-properties-file: version.properties
210 mvn-global-settings: global-settings
211 mvn-goals: clean deploy
216 submodule-recursive: true
217 submodule-timeout: 10
218 submodule-disable: false
220 disabled: '{disabled}'
224 **/target/**/feature.xml
225 **/target/failsafe-reports/failsafe-summary.xml
226 **/target/surefire-reports/*-output.txt
228 project-type: freestyle
230 java-version: 'openjdk11'
232 #####################
233 # Job Configuration #
234 #####################
237 - lf-infra-properties:
239 build-days-to-keep: '{build-days-to-keep}'
244 refspec: 'refs/heads/{branch}'
245 artifacts: '{archive-artifacts}'
246 - lf-infra-maven-parameters:
247 mvn-opts: "{mvn-opts}"
248 mvn-params: "{mvn-params}"
249 mvn-version: "{mvn-version}"
251 name: ARCHIVE_ARTIFACTS
252 default: "{archive-artifacts}"
253 description: Artifacts to archive to the logs server.
254 - integration-test-options:
255 test-options: '{robot-options}'
258 build-timeout: '{build-timeout}'
259 jenkins-ssh-credential: '{jenkins-ssh-credential}'
262 - lf-jacoco-nojava-workaround
264 mvn-version: "{mvn-version}"
265 - lf-update-java-alternatives:
266 java-version: "{java-version}"
267 - lf-infra-docker-login:
268 global-settings-file: "{mvn-global-settings}"
269 settings-file: "{mvn-settings}"
270 # must provide maven settings AFTER docker-login due to its cleanup
271 - lf-provide-maven-settings:
272 global-settings-file: "{mvn-global-settings}"
273 settings-file: "{mvn-settings}"
274 - lf-maven-versions-plugin:
275 maven-versions-plugin: "{maven-versions-plugin}"
276 version-properties-file: "{version-properties-file}"
277 mvn-version: "{mvn-version}"
279 mvn-settings: "{mvn-settings}"
281 properties-content: |
282 CONTAINER_PULL_REGISTRY={container-public-registry}
284 mvn-goals: "{mvn-goals}"
285 - integration-install-robotframework
287 properties-file: 'env.properties'
288 - integration-run-project-test
289 - lf-provide-maven-settings-cleanup
294 # Job template for unified review verification jobs in
295 # project-specific CSIT flow for projects built with maven
297 # The purpose of this job template is to:
298 # 1. build local snapshot docker images with maven
299 # 2. run CSIT job with the local images
300 # 3. give a verify vote to the triggering review
303 name: '{project-name}-review-verification-maven-{stream}'
305 <<: *verification_maven_job_boiler_plate
308 - gerrit-trigger-scm:
309 refspec: '$GERRIT_REFSPEC'
310 choosing-strategy: 'gerrit'
311 submodule-recursive: '{submodule-recursive}'
313 - gerrit-trigger-patch-submitted:
314 server: '{server-name}'
320 # Job template for unified merge verification jobs in
321 # project-specific CSIT flow for projects built with maven
323 # The purpose of this job template is to:
324 # 1. build local snapshot docker images from master with maven
325 # 2. run CSIT job with the local images
328 name: '{project-name}-merge-verification-maven-{stream}'
330 <<: *verification_maven_job_boiler_plate
333 - gerrit-trigger-scm:
335 choosing-strategy: 'default'
336 submodule-recursive: '{submodule-recursive}'
338 - gerrit-trigger-patch-merged:
339 server: '{server-name}'