Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 1 | --- |
| 2 | - job-template: |
| 3 | name: '{project-name}-{stream}-verify-csit-{functionality}' |
Jessica Wagantall | 8365699 | 2019-09-06 11:26:55 -0700 | [diff] [blame] | 4 | disabled: '{disabled}' |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 5 | |
| 6 | project-type: freestyle |
Bengt Thuree | de7d1a2 | 2022-09-30 00:24:40 +1000 | [diff] [blame] | 7 | build-node: 'ubuntu1804-docker-8c-8g' |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 8 | node: '{build-node}' |
Jessica Wagantall | 488a350 | 2019-11-04 18:47:05 -0800 | [diff] [blame] | 9 | recipients: '' |
Anil Belur | 266230d | 2020-01-26 10:33:47 +1000 | [diff] [blame] | 10 | java-version: 'openjdk11' |
Lasse Kaihlavirta | 46e537c | 2020-11-04 19:54:26 +0200 | [diff] [blame] | 11 | python-version: python3 |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 12 | |
| 13 | properties: |
| 14 | - lf-infra-properties: |
Gary Wu | b344044 | 2018-09-27 10:47:38 -0700 | [diff] [blame] | 15 | project: 'integration/csit' |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 16 | build-days-to-keep: '{build-days-to-keep}' |
| 17 | |
| 18 | parameters: |
| 19 | - infra-parameters: |
Gary Wu | b344044 | 2018-09-27 10:47:38 -0700 | [diff] [blame] | 20 | project: 'integration/csit' |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 21 | 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 Wu | b344044 | 2018-09-27 10:47:38 -0700 | [diff] [blame] | 43 | project: 'integration/csit' |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 44 | branch: '{branch}' |
Lasse Kaihlavirta | 8ab6427 | 2021-02-03 17:45:25 +0200 | [diff] [blame] | 45 | files: '*/{project-name}/**' |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 46 | |
| 47 | builders: |
Anil Belur | 266230d | 2020-01-26 10:33:47 +1000 | [diff] [blame] | 48 | - lf-update-java-alternatives: |
| 49 | java-version: '{java-version}' |
Matthew Watkins | 1e55439 | 2022-11-15 16:03:54 -0800 | [diff] [blame] | 50 | - integration-install-robotframework-py3 |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 51 | - inject: |
| 52 | properties-file: 'env.properties' |
| 53 | - integration-run-test |
| 54 | |
| 55 | publishers: |
| 56 | - integration-robot: |
| 57 | unstable-if: 0.0 |
| 58 | pass-if: 100.0 |
| 59 | - lf-infra-publish |
Jessica Wagantall | 488a350 | 2019-11-04 18:47:05 -0800 | [diff] [blame] | 60 | - email: |
| 61 | recipients: '{recipients}' |
| 62 | notify-every-unstable-build: false |
| 63 | send-to-individuals: true |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 64 | |
| 65 | - job-template: |
| 66 | name: '{project-name}-{stream}-csit-{functionality}' |
Jessica Wagantall | 8365699 | 2019-09-06 11:26:55 -0700 | [diff] [blame] | 67 | disabled: '{disabled}' |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 68 | |
| 69 | project-type: freestyle |
Bengt Thuree | de7d1a2 | 2022-09-30 00:24:40 +1000 | [diff] [blame] | 70 | build-node: 'ubuntu1804-docker-8c-8g' |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 71 | node: '{build-node}' |
Jessica Wagantall | 488a350 | 2019-11-04 18:47:05 -0800 | [diff] [blame] | 72 | recipients: '' |
Anil Belur | 266230d | 2020-01-26 10:33:47 +1000 | [diff] [blame] | 73 | java-version: 'openjdk11' |
Lasse Kaihlavirta | 46e537c | 2020-11-04 19:54:26 +0200 | [diff] [blame] | 74 | python-version: python3 |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 75 | |
| 76 | properties: |
| 77 | - lf-infra-properties: |
Gary Wu | b344044 | 2018-09-27 10:47:38 -0700 | [diff] [blame] | 78 | project: 'integration/csit' |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 79 | build-days-to-keep: '{build-days-to-keep}' |
| 80 | |
| 81 | parameters: |
| 82 | - infra-parameters: |
Gary Wu | b344044 | 2018-09-27 10:47:38 -0700 | [diff] [blame] | 83 | project: 'integration/csit' |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 84 | branch: '{branch}' |
| 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}' |
| 91 | |
| 92 | scm: |
| 93 | - gerrit-trigger-scm: |
| 94 | refspec: '' |
| 95 | choosing-strategy: 'default' |
| 96 | submodule-recursive: '{submodule-recursive}' |
| 97 | |
| 98 | wrappers: |
| 99 | - lf-infra-wrappers: |
| 100 | build-timeout: '{build-timeout}' |
| 101 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 102 | |
| 103 | triggers: |
| 104 | - gerrit-trigger-patch-merged: |
| 105 | server: '{server-name}' |
Gary Wu | b344044 | 2018-09-27 10:47:38 -0700 | [diff] [blame] | 106 | project: 'integration/csit' |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 107 | branch: '{branch}' |
Lasse Kaihlavirta | 8ab6427 | 2021-02-03 17:45:25 +0200 | [diff] [blame] | 108 | files: '*/{project-name}/**' |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 109 | - timed: '@daily' |
| 110 | - reverse: |
| 111 | jobs: '{obj:trigger_jobs}' |
| 112 | |
| 113 | builders: |
Lasse Kaihlavirta | 46e537c | 2020-11-04 19:54:26 +0200 | [diff] [blame] | 114 | - lf-infra-pre-build |
Anil Belur | 266230d | 2020-01-26 10:33:47 +1000 | [diff] [blame] | 115 | - lf-update-java-alternatives: |
| 116 | java-version: '{java-version}' |
Anil Belur | e042b28 | 2022-11-16 14:16:57 -0800 | [diff] [blame] | 117 | - integration-install-robotframework-py3 |
Gary Wu | 0bb72f5 | 2017-07-13 12:32:14 -0700 | [diff] [blame] | 118 | - inject: |
| 119 | properties-file: 'env.properties' |
| 120 | - integration-run-test |
| 121 | |
| 122 | publishers: |
| 123 | - integration-robot: |
| 124 | unstable-if: 0.0 |
| 125 | pass-if: 100.0 |
| 126 | - lf-infra-publish |
Jessica Wagantall | 488a350 | 2019-11-04 18:47:05 -0800 | [diff] [blame] | 127 | - email: |
| 128 | recipients: '{recipients}' |
| 129 | notify-every-unstable-build: false |
| 130 | send-to-individuals: true |
Yuli Shlosberg | 6edd8ba | 2017-11-30 18:00:27 +0200 | [diff] [blame] | 131 | |
Lasse Kaihlavirta | 27499e4 | 2021-02-02 12:07:02 +0200 | [diff] [blame] | 132 | - verification_maven_job_boiler_plate: &verification_maven_job_boiler_plate |
| 133 | name: verification_maven_job_boiler_plate |
| 134 | |
| 135 | ###################### |
| 136 | # Default parameters # |
| 137 | ###################### |
| 138 | |
| 139 | branch: master |
ChrisC | 5b8de52 | 2021-02-16 15:51:43 +0100 | [diff] [blame] | 140 | build-concurrent: false |
Lasse Kaihlavirta | 27499e4 | 2021-02-02 12:07:02 +0200 | [diff] [blame] | 141 | build-days-to-keep: 30 # 30 days in case a release takes long to get approved. |
Bengt Thuree | de7d1a2 | 2022-09-30 00:24:40 +1000 | [diff] [blame] | 142 | build-node: ubuntu1804-docker-8c-8g |
Lasse Kaihlavirta | 27499e4 | 2021-02-02 12:07:02 +0200 | [diff] [blame] | 143 | build-timeout: 60 |
| 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 |
| 149 | mvn-central: false |
| 150 | mvn-global-settings: global-settings |
| 151 | mvn-goals: clean deploy |
| 152 | mvn-opts: "" |
| 153 | mvn-pom: "" |
| 154 | mvn-version: mvn36 |
| 155 | stream: master |
| 156 | submodule-recursive: true |
| 157 | submodule-timeout: 10 |
| 158 | submodule-disable: false |
| 159 | |
| 160 | disabled: '{disabled}' |
| 161 | archive-artifacts: > |
| 162 | **/*.log |
| 163 | **/hs_err_*.log |
| 164 | **/target/**/feature.xml |
| 165 | **/target/failsafe-reports/failsafe-summary.xml |
| 166 | **/target/surefire-reports/*-output.txt |
| 167 | |
| 168 | project-type: freestyle |
| 169 | node: '{build-node}' |
| 170 | java-version: 'openjdk11' |
| 171 | |
| 172 | ##################### |
| 173 | # Job Configuration # |
| 174 | ##################### |
ChrisC | 5b8de52 | 2021-02-16 15:51:43 +0100 | [diff] [blame] | 175 | concurrent: "{build-concurrent}" |
Lasse Kaihlavirta | 27499e4 | 2021-02-02 12:07:02 +0200 | [diff] [blame] | 176 | properties: |
| 177 | - lf-infra-properties: |
| 178 | project: '{project}' |
| 179 | build-days-to-keep: '{build-days-to-keep}' |
| 180 | parameters: |
| 181 | - infra-parameters: |
| 182 | project: '{project}' |
| 183 | branch: '{branch}' |
| 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}" |
| 190 | - string: |
| 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}' |
| 196 | wrappers: |
| 197 | - lf-infra-wrappers: |
| 198 | build-timeout: '{build-timeout}' |
| 199 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 200 | builders: |
| 201 | - lf-infra-pre-build |
| 202 | - lf-jacoco-nojava-workaround |
| 203 | - lf-maven-install: |
| 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}" |
| 218 | mvn-pom: "{mvn-pom}" |
| 219 | mvn-settings: "{mvn-settings}" |
| 220 | - inject: |
| 221 | properties-content: | |
| 222 | CONTAINER_PULL_REGISTRY={container-public-registry} |
| 223 | - lf-maven-build: |
| 224 | mvn-goals: "{mvn-goals}" |
Anil Belur | a0ce623 | 2022-11-16 11:39:53 -0800 | [diff] [blame] | 225 | - integration-install-robotframework-py3 |
Lasse Kaihlavirta | 27499e4 | 2021-02-02 12:07:02 +0200 | [diff] [blame] | 226 | - inject: |
| 227 | properties-file: 'env.properties' |
| 228 | - integration-run-project-test |
| 229 | - lf-provide-maven-settings-cleanup |
| 230 | publishers: |
Lasse Kaihlavirta | 32ebb46 | 2021-02-24 11:44:37 +0200 | [diff] [blame] | 231 | - integration-project-robot: |
Lasse Kaihlavirta | 5b01733 | 2021-02-23 19:19:32 +0200 | [diff] [blame] | 232 | unstable-if: 0.0 |
| 233 | pass-if: 100.0 |
Lasse Kaihlavirta | 27499e4 | 2021-02-02 12:07:02 +0200 | [diff] [blame] | 234 | - lf-infra-publish |
Lasse Kaihlavirta | 5b01733 | 2021-02-23 19:19:32 +0200 | [diff] [blame] | 235 | - email: |
| 236 | recipients: '{recipients}' |
| 237 | notify-every-unstable-build: false |
| 238 | send-to-individuals: true |
Lasse Kaihlavirta | 27499e4 | 2021-02-02 12:07:02 +0200 | [diff] [blame] | 239 | |
Lasse Kaihlavirta | f819114 | 2020-11-11 19:27:57 +0200 | [diff] [blame] | 240 | - job-template: |
Lasse Kaihlavirta | 73824ee | 2021-01-15 19:01:56 +0200 | [diff] [blame] | 241 | # Job template for unified review verification jobs in |
| 242 | # project-specific CSIT flow for projects built with maven |
| 243 | # |
| 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 |
| 248 | # |
| 249 | |
| 250 | name: '{project-name}-review-verification-maven-{stream}' |
| 251 | |
Lasse Kaihlavirta | 27499e4 | 2021-02-02 12:07:02 +0200 | [diff] [blame] | 252 | <<: *verification_maven_job_boiler_plate |
Lasse Kaihlavirta | 73824ee | 2021-01-15 19:01:56 +0200 | [diff] [blame] | 253 | |
| 254 | scm: |
| 255 | - gerrit-trigger-scm: |
| 256 | refspec: '$GERRIT_REFSPEC' |
| 257 | choosing-strategy: 'gerrit' |
| 258 | submodule-recursive: '{submodule-recursive}' |
Lasse Kaihlavirta | 73824ee | 2021-01-15 19:01:56 +0200 | [diff] [blame] | 259 | triggers: |
| 260 | - gerrit-trigger-patch-submitted: |
| 261 | server: '{server-name}' |
| 262 | project: '{project}' |
| 263 | branch: '{branch}' |
| 264 | files: '**' |
Lasse Kaihlavirta | 73824ee | 2021-01-15 19:01:56 +0200 | [diff] [blame] | 265 | |
| 266 | - job-template: |
Lasse Kaihlavirta | 4ea05d2 | 2021-01-22 14:12:56 +0200 | [diff] [blame] | 267 | # Job template for unified merge verification jobs in |
| 268 | # project-specific CSIT flow for projects built with maven |
| 269 | # |
| 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 |
| 273 | # |
| 274 | |
| 275 | name: '{project-name}-merge-verification-maven-{stream}' |
| 276 | |
Lasse Kaihlavirta | 27499e4 | 2021-02-02 12:07:02 +0200 | [diff] [blame] | 277 | <<: *verification_maven_job_boiler_plate |
Lasse Kaihlavirta | 4ea05d2 | 2021-01-22 14:12:56 +0200 | [diff] [blame] | 278 | |
| 279 | scm: |
| 280 | - gerrit-trigger-scm: |
| 281 | refspec: '' |
| 282 | choosing-strategy: 'default' |
| 283 | submodule-recursive: '{submodule-recursive}' |
Lasse Kaihlavirta | 4ea05d2 | 2021-01-22 14:12:56 +0200 | [diff] [blame] | 284 | triggers: |
| 285 | - gerrit-trigger-patch-merged: |
| 286 | server: '{server-name}' |
| 287 | project: '{project}' |
| 288 | branch: '{branch}' |
| 289 | files: '**' |