blob: 439038bc2c0d53b43e49defecb71e2f4426f301e [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
robert.tomczykd69f7452023-06-27 10:58:16 +010071- job-template:
robert.tomczyk9e42d672023-06-28 10:39:12 +010072 name: 'onap-{project-name}-{stream}-performance-test-java'
robert.tomczykd69f7452023-06-27 10:58:16 +010073 disabled_job_var: false
74 node: onap-ubuntu1804
75
76 disabled: '{obj:disabled_job_var}'
77 concurrent: true
78 mvn_settings_xml_version:
79 mvn_params:
80 mvn_version: 3.5.4
81 subdirectory:
82 properties:
83 - logrotate
84
85 parameters:
86 - project-parameters:
87 project: 'onap/{project}'
88 branch: '{branch}'
89 - nordix-gerrit-parameters
robert.tomczyk9e42d672023-06-28 10:39:12 +010090 - string:
91 name: JAVA_HOME
92 default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
93 description: Java home
94 - string:
95 name: MVN_VERSION
96 default: '{mvn_version}'
97 description: Maven version
98 - string:
99 name: MVN_URL
100 default: https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/$MVN_VERSION/apache-maven-${{MVN_VERSION}}-bin.zip
101 description: URL to download Maven
102 - string:
103 name: MVN
104 default: $WORKSPACE/apache-maven-${{MVN_VERSION}}/bin/mvn
105 description: Path to mvn executable
106 - string:
107 name: MVN_SETTINGS_XML_VERSION
108 default: '{mvn_settings_xml_version}'
109 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.
110 - string:
111 name: MVN_PARAMS
112 default: '{mvn_params}'
113 description: Maven build parameters
114 - string:
115 name: SUBDIRECTORY
116 default: '{subdirectory}'
117 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 +0100118 scm:
robert.tomczykc87b9772023-07-03 18:15:06 +0100119 - git-scm:
robert.tomczykd69f7452023-06-27 10:58:16 +0100120 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
121 branch: '{branch}'
robert.tomczyk9e42d672023-06-28 10:39:12 +0100122 refspec: ''
robert.tomczykd69f7452023-06-27 10:58:16 +0100123 wipe_workspace: true
124 clean_before: false
125
126 triggers:
127 - timed: '{timer}'
robert.tomczyk57ef7c22023-07-03 17:33:19 +0100128 - gerrit:
129 server-name: 'Nordix Gerrit'
130 trigger-on:
131 - comment-added-contains-event:
132 comment-contains-value: 'performance-test'
133 projects:
134 - project-compare-type: 'ANT'
135 project-pattern: 'onap/{project}'
136 branches:
137 - branch-compare-type: 'ANT'
138 branch-pattern: '**/{branch}'
139 file-paths:
140 - compare-type: 'ANT'
141 pattern: '**'
robert.tomczykd69f7452023-06-27 10:58:16 +0100142
143 wrappers:
144 - build-timeout:
145 timeout: 45
146
147 builders:
148 - shell:
149 !include-raw-escape: ./verify-jobs.sh
150
andrew-estbed991f2021-06-22 15:23:46 +0100151# csits for diferent projects are different so need to have special handling
152- job-template:
153 name: 'onap-policy-docker-{stream}-csit-java'
154 disabled_job_var: false
155 node: onap-ubuntu1804
156
157 disabled: '{obj:disabled_job_var}'
158 concurrent: true
159 properties:
160 - logrotate
161
162 parameters:
163 - project-parameters:
164 project: 'onap/{project}'
165 branch: '{branch}'
166 - nordix-gerrit-parameters
167 - string:
168 name: JAVA_HOME
169 default: '/usr/lib/jvm/{jdk-version}-openjdk-amd64'
170 description: Java home
171 - string:
172 name: CSIT_TEST_NAMES
173 default: '{csit_test_names}'
174 description: The name of the csits test to run
175 scm:
176 - git-scm-gerrit:
177 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
178 branch: 'master'
179 refspec: $GERRIT_REFSPEC
180 wipe_workspace: true
181 clean_before: false
182
183 triggers:
184 - nordix-gerrit-trigger-patchset-created:
185 project: 'onap/{project}'
186 branch: '{branch}'
187 files: '**'
188
189 wrappers:
190 - build-timeout:
191 timeout: 45
192
193 builders:
194 - 'wait-pkg-mgr-macro'
195 - shell:
196 !include-raw-escape: ./policy-docker-csit-jobs.sh