blob: 91c4a28ae109bc5bddc76992eca12ff15af05259 [file] [log] [blame]
robert.tomczyke53f0092019-06-05 12:03:09 +01001- job-template:
2 name: 'onap-{project-name}-{stream}-verify-java'
robert.tomczyk19d1ad12020-03-23 16:35:32 +00003 disabled_job_var: false
robert.tomczyk08e50eb2020-08-11 16:53:28 +01004 node: onap-ubuntu1804
robert.tomczyke53f0092019-06-05 12:03:09 +01005
robert.tomczyk19d1ad12020-03-23 16:35:32 +00006 disabled: '{obj:disabled_job_var}'
robert.tomczyke53f0092019-06-05 12:03:09 +01007 concurrent: true
robert.tomczyk750a20f2020-08-18 11:08:43 +01008 mvn_settings_xml_version:
afenner29099642020-08-28 16:09:31 +01009 mvn_params:
robert.tomczykc75d04b2020-11-09 13:28:21 +000010 mvn_version: 3.5.4
afennera6c9eaa2020-10-21 17:04:50 +010011 subdirectory:
robert.tomczyke53f0092019-06-05 12:03:09 +010012 properties:
13 - logrotate
14
15 parameters:
afenner49aae692019-08-16 14:50:42 +010016 - project-parameters:
17 project: 'onap/{project}'
18 branch: '{branch}'
robert.tomczyke53f0092019-06-05 12:03:09 +010019 - nordix-gerrit-parameters
robert.tomczyk9e42d672023-06-28 10:39:12 +010020 - string:
21 name: JAVA_HOME
22 default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
23 description: Java home
24 - string:
25 name: MVN_VERSION
26 default: '{mvn_version}'
27 description: Maven version
28 - string:
29 name: MVN_URL
30 default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
31 description: URL to download Maven
32 - string:
33 name: MVN
34 default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
35 description: Path to mvn executable
36 - string:
37 name: MVN_SETTINGS_XML_VERSION
38 default: '{mvn_settings_xml_version}'
39 description: Commit ID of ONAP Oparent repository (https://git.onap.org/oparent/) to pull. Used for Maven settings file. Can be left blank to pull the latest version.
40 - string:
41 name: MVN_PARAMS
42 default: '{mvn_params}'
43 description: Maven build parameters
44 - string:
45 name: SUBDIRECTORY
46 default: '{subdirectory}'
47 description: Subdirectory of the workspace for which the pom.xml will be called. This allows the verify to be called against a specific directory
robert.tomczykd69f7452023-06-27 10:58:16 +010048
robert.tomczyke53f0092019-06-05 12:03:09 +010049 scm:
50 - git-scm-gerrit:
51 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
52 branch: '{branch}'
53 refspec: $GERRIT_REFSPEC
robert.tomczyk7e507872019-06-18 17:20:26 +010054 wipe_workspace: true
55 clean_before: false
robert.tomczyke53f0092019-06-05 12:03:09 +010056
57 triggers:
58 - nordix-gerrit-trigger-patchset-created:
59 project: 'onap/{project}'
60 branch: '{branch}'
61 files: '**'
62
63 wrappers:
64 - build-timeout:
65 timeout: 45
66
67 builders:
68 - shell:
robert.tomczyk08e50eb2020-08-11 16:53:28 +010069 !include-raw-escape: ./verify-jobs.sh
andrew-estbed991f2021-06-22 15:23:46 +010070
emaclee5bbdfca2023-08-18 14:14:49 +010071# A job to perform CSIT on policy components
afenner64ae4312023-07-12 09:17:45 +010072- job-template:
73 name: 'onap-{project-name}-{stream}-policy-csit-verify-java'
74 disabled_job_var: false
75 node: onap-ubuntu1804
76
77 disabled: '{obj:disabled_job_var}'
78 concurrent: true
79 mvn_settings_xml_version:
80 mvn_params:
81 mvn_version: 3.5.4
82 subdirectory:
83 properties:
84 - logrotate
85
86 parameters:
87 - project-parameters:
88 project: 'onap/{project}'
89 branch: '{branch}'
90 - nordix-gerrit-parameters
91 - string:
92 name: JAVA_HOME
93 default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
94 description: Java home
95 - string:
96 name: MVN_VERSION
97 default: '{mvn_version}'
98 description: Maven version
99 - string:
100 name: MVN_URL
101 default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
102 description: URL to download Maven
103 - string:
104 name: MVN
105 default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
106 description: Path to mvn executable
107 - string:
108 name: MVN_SETTINGS_XML_VERSION
109 default: '{mvn_settings_xml_version}'
110 description: Commit ID of ONAP Oparent repository (https://git.onap.org/oparent/) to pull. Used for Maven settings file. Can be left blank to pull the latest version.
111 - string:
112 name: MVN_PARAMS
113 default: '{mvn_params}'
114 description: Maven build parameters
115 - string:
116 name: CSIT_NAME
117 default: '{csit-name}'
emaclee5bbdfca2023-08-18 14:14:49 +0100118 description: The name of the csit-test to run
afenner64ae4312023-07-12 09:17:45 +0100119 - string:
120 name: SUBDIRECTORY
121 default: '{subdirectory}'
122 description: Subdirectory of the workspace for which the pom.xml will be called. This allows the verify to be called against a specific directory
123
124 scm:
125 - git-scm-gerrit:
126 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
127 branch: '{branch}'
128 refspec: $GERRIT_REFSPEC
129 wipe_workspace: true
130 clean_before: false
131
132 triggers:
133 - nordix-gerrit-trigger-patchset-created:
134 project: 'onap/{project}'
135 branch: '{branch}'
136 files: '**'
137
138 wrappers:
139 - build-timeout:
140 timeout: 45
141
142 builders:
143 - shell:
144 !include-raw-escape: ./verify-jobs.sh
145 - shell:
146 !include-raw-escape: ./verify-policy-csit.sh
emaclee5bbdfca2023-08-18 14:14:49 +0100147
148- job-template:
149 name: 'onap-{project-name}-performance-tests-plots'
150 disabled_job_var: false
emaclee5bbdfca2023-08-18 14:14:49 +0100151
152 builders:
153 - shell:
154 !include-raw-escape: ./cps/prepare-performance-tests-data.sh
155
156 publishers:
157 - plot:
158 - title: "performance"
159 group: "performance"
160 csvFileName: "results.txt"
161 style: line
162 exclude-zero-yaxis: true
163 num-builds: '30'
164 series:
165 - file:
166 url: 'results.txt'
167 inclusion-flag: 'off'
168 display-table: false
169 format: csv
170
robert.tomczykd69f7452023-06-27 10:58:16 +0100171- job-template:
robert.tomczyk9e42d672023-06-28 10:39:12 +0100172 name: 'onap-{project-name}-{stream}-performance-test-java'
robert.tomczykd69f7452023-06-27 10:58:16 +0100173 disabled_job_var: false
174 node: onap-ubuntu1804
175
176 disabled: '{obj:disabled_job_var}'
177 concurrent: true
178 mvn_settings_xml_version:
179 mvn_params:
180 mvn_version: 3.5.4
181 subdirectory:
182 properties:
183 - logrotate
184
185 parameters:
186 - project-parameters:
187 project: 'onap/{project}'
188 branch: '{branch}'
189 - nordix-gerrit-parameters
robert.tomczyk9e42d672023-06-28 10:39:12 +0100190 - string:
191 name: JAVA_HOME
192 default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
193 description: Java home
194 - string:
195 name: MVN_VERSION
196 default: '{mvn_version}'
197 description: Maven version
198 - string:
199 name: MVN_URL
200 default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
201 description: URL to download Maven
202 - string:
203 name: MVN
204 default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
205 description: Path to mvn executable
206 - string:
207 name: MVN_SETTINGS_XML_VERSION
208 default: '{mvn_settings_xml_version}'
209 description: Commit ID of ONAP Oparent repository (https://git.onap.org/oparent/) to pull. Used for Maven settings file. Can be left blank to pull the latest version.
210 - string:
211 name: MVN_PARAMS
212 default: '{mvn_params}'
213 description: Maven build parameters
214 - string:
215 name: SUBDIRECTORY
216 default: '{subdirectory}'
217 description: Subdirectory of the workspace for which the pom.xml will be called. This allows the verify to be called against a specific directory
robert.tomczykd69f7452023-06-27 10:58:16 +0100218 scm:
robert.tomczykc87b9772023-07-03 18:15:06 +0100219 - git-scm:
robert.tomczykd69f7452023-06-27 10:58:16 +0100220 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
221 branch: '{branch}'
robert.tomczyk9e42d672023-06-28 10:39:12 +0100222 refspec: ''
robert.tomczykd69f7452023-06-27 10:58:16 +0100223 wipe_workspace: true
224 clean_before: false
225
226 triggers:
227 - timed: '{timer}'
robert.tomczyk57ef7c22023-07-03 17:33:19 +0100228 - gerrit:
229 server-name: 'Nordix Gerrit'
230 trigger-on:
231 - comment-added-contains-event:
232 comment-contains-value: 'performance-test'
233 projects:
234 - project-compare-type: 'ANT'
235 project-pattern: 'onap/{project}'
236 branches:
237 - branch-compare-type: 'ANT'
238 branch-pattern: '**/{branch}'
239 file-paths:
240 - compare-type: 'ANT'
241 pattern: '**'
robert.tomczykd69f7452023-06-27 10:58:16 +0100242
243 wrappers:
244 - build-timeout:
245 timeout: 45
246
247 builders:
248 - shell:
249 !include-raw-escape: ./verify-jobs.sh
250
emacleeff62bc42023-08-30 12:37:02 +0100251 publishers:
252 - trigger:
emacleeca23e192023-08-30 09:56:13 +0100253 project: 'onap-cps-performance-tests-plots'
afenner64ae4312023-07-12 09:17:45 +0100254
andrew-estbed991f2021-06-22 15:23:46 +0100255# csits for diferent projects are different so need to have special handling
256- job-template:
257 name: 'onap-policy-docker-{stream}-csit-java'
258 disabled_job_var: false
259 node: onap-ubuntu1804
260
261 disabled: '{obj:disabled_job_var}'
262 concurrent: true
263 properties:
264 - logrotate
265
266 parameters:
267 - project-parameters:
268 project: 'onap/{project}'
269 branch: '{branch}'
270 - nordix-gerrit-parameters
271 - string:
272 name: JAVA_HOME
273 default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
274 description: Java home
275 - string:
276 name: CSIT_TEST_NAMES
277 default: '{csit_test_names}'
278 description: The name of the csits test to run
279 scm:
280 - git-scm-gerrit:
281 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
282 branch: 'master'
283 refspec: $GERRIT_REFSPEC
284 wipe_workspace: true
285 clean_before: false
286
287 triggers:
288 - nordix-gerrit-trigger-patchset-created:
289 project: 'onap/{project}'
290 branch: '{branch}'
291 files: '**'
292
293 wrappers:
294 - build-timeout:
295 timeout: 45
296
297 builders:
298 - 'wait-pkg-mgr-macro'
299 - shell:
300 !include-raw-escape: ./policy-docker-csit-jobs.sh