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
132 - verification_maven_job_boiler_plate: &verification_maven_job_boiler_plate
133 name: verification_maven_job_boiler_plate
135 ######################
136 # Default parameters #
137 ######################
140 build-concurrent: false
141 build-days-to-keep: 30 # 30 days in case a release takes long to get approved.
142 build-node: ubuntu1804-docker-8c-8g
144 container-public-registry: 'nexus3.onap.org:10001'
145 git-url: "$GIT_URL/$PROJECT"
146 github-url: "https://github.com"
147 maven-versions-plugin: false
148 version-properties-file: version.properties
150 mvn-global-settings: global-settings
151 mvn-goals: clean deploy
156 submodule-recursive: true
157 submodule-timeout: 10
158 submodule-disable: false
160 disabled: '{disabled}'
164 **/target/**/feature.xml
165 **/target/failsafe-reports/failsafe-summary.xml
166 **/target/surefire-reports/*-output.txt
168 project-type: freestyle
170 java-version: 'openjdk11'
172 #####################
173 # Job Configuration #
174 #####################
175 concurrent: "{build-concurrent}"
177 - lf-infra-properties:
179 build-days-to-keep: '{build-days-to-keep}'
184 refspec: 'refs/heads/{branch}'
185 artifacts: '{archive-artifacts}'
186 - lf-infra-maven-parameters:
187 mvn-opts: "{mvn-opts}"
188 mvn-params: "{mvn-params}"
189 mvn-version: "{mvn-version}"
191 name: ARCHIVE_ARTIFACTS
192 default: "{archive-artifacts}"
193 description: Artifacts to archive to the logs server.
194 - integration-test-options:
195 test-options: '{robot-options}'
198 build-timeout: '{build-timeout}'
199 jenkins-ssh-credential: '{jenkins-ssh-credential}'
202 - lf-jacoco-nojava-workaround
204 mvn-version: "{mvn-version}"
205 - lf-update-java-alternatives:
206 java-version: "{java-version}"
207 - lf-infra-docker-login:
208 global-settings-file: "{mvn-global-settings}"
209 settings-file: "{mvn-settings}"
210 # must provide maven settings AFTER docker-login due to its cleanup
211 - lf-provide-maven-settings:
212 global-settings-file: "{mvn-global-settings}"
213 settings-file: "{mvn-settings}"
214 - lf-maven-versions-plugin:
215 maven-versions-plugin: "{maven-versions-plugin}"
216 version-properties-file: "{version-properties-file}"
217 mvn-version: "{mvn-version}"
219 mvn-settings: "{mvn-settings}"
221 properties-content: |
222 CONTAINER_PULL_REGISTRY={container-public-registry}
224 mvn-goals: "{mvn-goals}"
225 - integration-install-robotframework
227 properties-file: 'env.properties'
228 - integration-run-project-test
229 - lf-provide-maven-settings-cleanup
231 - integration-project-robot:
236 recipients: '{recipients}'
237 notify-every-unstable-build: false
238 send-to-individuals: true
241 # Job template for unified review verification jobs in
242 # project-specific CSIT flow for projects built with maven
244 # The purpose of this job template is to:
245 # 1. build local snapshot docker images with maven
246 # 2. run CSIT job with the local images
247 # 3. give a verify vote to the triggering review
250 name: '{project-name}-review-verification-maven-{stream}'
252 <<: *verification_maven_job_boiler_plate
255 - gerrit-trigger-scm:
256 refspec: '$GERRIT_REFSPEC'
257 choosing-strategy: 'gerrit'
258 submodule-recursive: '{submodule-recursive}'
260 - gerrit-trigger-patch-submitted:
261 server: '{server-name}'
267 # Job template for unified merge verification jobs in
268 # project-specific CSIT flow for projects built with maven
270 # The purpose of this job template is to:
271 # 1. build local snapshot docker images from master with maven
272 # 2. run CSIT job with the local images
275 name: '{project-name}-merge-verification-maven-{stream}'
277 <<: *verification_maven_job_boiler_plate
280 - gerrit-trigger-scm:
282 choosing-strategy: 'default'
283 submodule-recursive: '{submodule-recursive}'
285 - gerrit-trigger-patch-merged:
286 server: '{server-name}'