Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 1 | --- |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 2 | - job-template: &verify_java_defaults |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 3 | # Job template for Java verify jobs |
| 4 | # |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 5 | # The purpose of this job template is to run: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 6 | # 1. maven clean install |
Pamela Dragosh | c6ff9c7 | 2017-02-16 11:11:45 -0500 | [diff] [blame] | 7 | # |
| 8 | # Required Variables: |
| 9 | # branch: git branch (eg. stable/lithium or master) |
| 10 | |
Andrew Grimberg | ce2286c | 2017-01-31 05:50:39 -0800 | [diff] [blame] | 11 | name: '{project-name}-{stream}-verify-java' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 12 | |
| 13 | project-type: freestyle |
| 14 | concurrent: true |
| 15 | node: '{build-node}' |
Jessica Wagantall | 993e536 | 2019-08-30 14:40:34 -0700 | [diff] [blame] | 16 | build-env-variables: '' |
Gary Wu | 5918acd | 2018-08-06 16:42:21 -0700 | [diff] [blame] | 17 | pattern: '**' |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 18 | pom: |
Jessica Wagantall | 5b0faff | 2019-08-30 12:45:08 -0700 | [diff] [blame] | 19 | mvn-opts: '' |
| 20 | java-opts: '' |
Jessica Wagantall | 52360d6 | 2019-11-08 15:32:58 -0800 | [diff] [blame] | 21 | java-version: openjdk8 |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 22 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 23 | - infra-properties: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 24 | build-days-to-keep: '{build-days-to-keep}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 25 | |
| 26 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 27 | - infra-parameters: |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 28 | project: '{project}' |
| 29 | branch: '{branch}' |
| 30 | refspec: 'refs/heads/{branch}' |
Andrew Grimberg | 597853d | 2017-01-31 05:28:25 -0800 | [diff] [blame] | 31 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | dcdce33 | 2017-02-24 11:27:09 -0800 | [diff] [blame] | 32 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 33 | maven-version: '{maven-version}' |
Jessica Wagantall | d25908c | 2018-03-28 12:06:39 -0700 | [diff] [blame] | 34 | - maven-params: |
| 35 | mvn-params: '{mvn-params}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 36 | |
| 37 | scm: |
| 38 | - gerrit-trigger-scm: |
| 39 | refspec: '$GERRIT_REFSPEC' |
| 40 | choosing-strategy: 'gerrit' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 41 | submodule-recursive: '{submodule-recursive}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 42 | |
| 43 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 44 | - infra-wrappers: |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 45 | build-timeout: '{build-timeout}' |
| 46 | |
| 47 | triggers: |
| 48 | - gerrit-trigger-patch-submitted: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 49 | server: '{server-name}' |
| 50 | project: '{project}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 51 | branch: '{branch}' |
Gary Wu | 5918acd | 2018-08-06 16:42:21 -0700 | [diff] [blame] | 52 | files: '{obj:pattern}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 53 | |
| 54 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 55 | - lf-infra-pre-build |
Jessica Wagantall | 52360d6 | 2019-11-08 15:32:58 -0800 | [diff] [blame] | 56 | - lf-update-java-alternatives: |
| 57 | java-version: "{java-version}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 58 | - provide-maven-settings: |
| 59 | global-settings-file: 'global-settings' |
| 60 | settings-file: '{mvn-settings}' |
Jessica Wagantall | 993e536 | 2019-08-30 14:40:34 -0700 | [diff] [blame] | 61 | - inject: |
| 62 | properties-content: "{build-env-variables}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 63 | - maven-target: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 64 | maven-version: '{maven-version}' |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 65 | pom: '{obj:pom}' |
Andrew Grimberg | e55b622 | 2017-05-03 16:19:28 -0400 | [diff] [blame] | 66 | goals: 'clean install -B |
Jessica Wagantall | d25908c | 2018-03-28 12:06:39 -0700 | [diff] [blame] | 67 | -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn {mvn-params}' |
Jessica Wagantall | 5b0faff | 2019-08-30 12:45:08 -0700 | [diff] [blame] | 68 | properties: |
| 69 | - MAVEN_OPTS='{mvn-opts}' |
| 70 | java-opts: |
| 71 | - "{java-opts}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 72 | settings: '{mvn-settings}' |
| 73 | settings-type: cfp |
| 74 | global-settings: 'global-settings' |
| 75 | global-settings-type: cfp |
| 76 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 77 | publishers: |
| 78 | - infra-shiplogs: |
| 79 | maven-version: '{maven-version}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 80 | |
| 81 | - job-template: |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 82 | # Job template for Java verify jobs running checkstyle at the end |
| 83 | # When checkstyle will be fully incorporated, it is meant to replace |
| 84 | # '{project-name}-{stream}-verify-java-checkstyle' |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 85 | # |
| 86 | # The purpose of this job template is to run: |
| 87 | # 1. maven clean install |
| 88 | # |
| 89 | # This job publishes checkstyle results. |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 90 | # |
| 91 | # Required Variables: |
| 92 | # branch: git branch (eg. stable/lithium or master) |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 93 | |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 94 | <<: *verify_java_defaults |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 95 | name: '{project-name}-{stream}-verify-java-checkstyle' |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 96 | publishers: |
| 97 | - infra-shiplogs: |
| 98 | maven-version: '{maven-version}' |
| 99 | - checkstyle-result |
| 100 | |
| 101 | - job-template: |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 102 | # Job template for Java verify jobs with POM not at the root |
| 103 | # |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 104 | # The purpose of this job template is to run: |
| 105 | # 1. maven clean install |
| 106 | # |
| 107 | # This job supports subprojects. |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 108 | # |
| 109 | # Required Variables: |
| 110 | # branch: git branch (eg. stable/lithium or master) |
| 111 | # pom: name/location of the pom.xml file relative to the workspace |
| 112 | # pattern: ant file-path pattern relative to the workspace used to |
| 113 | # trigger the job |
| 114 | |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 115 | <<: *verify_java_defaults |
Andrew Grimberg | ce2286c | 2017-01-31 05:50:39 -0800 | [diff] [blame] | 116 | name: '{project-name}-{stream}-{subproject}-verify-java' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 117 | |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 118 | - job-template: |
pwielebs | d30b16f | 2019-11-18 12:17:18 +0100 | [diff] [blame] | 119 | # Job template for Java integration pairwise jobs |
| 120 | # |
| 121 | # The purpose of this job template is to run: |
| 122 | # 1. maven clean install |
| 123 | # |
| 124 | # Required Variables: |
| 125 | # branch: git branch (eg. stable/lithium or master) |
| 126 | |
| 127 | <<: *verify_java_defaults |
| 128 | name: '{project-name}-{stream}-integration-pairwise' |
| 129 | triggers: |
| 130 | - timed: '@daily' |
| 131 | - gerrit-trigger-patch-submitted: |
| 132 | server: '{server-name}' |
| 133 | project: '{project}' |
| 134 | branch: '{branch}' |
| 135 | files: '{obj:pattern}' |
| 136 | |
| 137 | - job-template: |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 138 | # Job template for Java daily release jobs running checkstyle at the end |
| 139 | # When checkstyle will be fully incorporated, it is meant to replace |
| 140 | # '{project-name}-{stream}-release-java-daily' |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 141 | # |
| 142 | # The purpose of this job template is to run: |
| 143 | # 1. maven clean deploy with Sonar scans |
| 144 | # |
| 145 | # This job publishes checkstyle results. |
| 146 | # This job uses a conditional regex match step to set versions. |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 147 | # |
| 148 | # Required Variables: |
| 149 | # branch: git branch (eg. stable/lithium or master) |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 150 | |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 151 | name: '{project-name}-{stream}-release-java-daily-checkstyle' |
| 152 | project-type: freestyle |
| 153 | node: '{build-node}' |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 154 | disabled: '{disabled}' |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 155 | maven-deploy-properties: |
| 156 | properties: |
| 157 | - infra-properties: |
| 158 | build-days-to-keep: '{build-days-to-keep}' |
| 159 | parameters: |
| 160 | - infra-parameters: |
| 161 | project: '{project}' |
| 162 | branch: '{branch}' |
| 163 | refspec: 'refs/heads/{branch}' |
| 164 | artifacts: '{archive-artifacts}' |
| 165 | - maven-exec: |
| 166 | maven-version: '{maven-version}' |
| 167 | scm: |
| 168 | - gerrit-trigger-scm: |
| 169 | refspec: '' |
| 170 | choosing-strategy: 'default' |
| 171 | submodule-recursive: '{submodule-recursive}' |
| 172 | wrappers: |
| 173 | - infra-wrappers: |
| 174 | build-timeout: '{build-timeout}' |
| 175 | triggers: |
| 176 | # 11 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 177 | - timed: '@daily' |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 178 | - gerrit-trigger-release-manually: |
| 179 | server: '{server-name}' |
| 180 | project: '{project}' |
| 181 | branch: '{branch}' |
| 182 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 183 | - lf-infra-pre-build |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 184 | - provide-maven-settings: |
| 185 | global-settings-file: 'global-settings' |
| 186 | settings-file: '{mvn-settings}' |
JulienBe | d91a33a | 2017-09-25 15:56:34 +0200 | [diff] [blame] | 187 | - conditional-step: |
| 188 | condition-kind: regex-match |
| 189 | regex: DoSetVersion |
| 190 | label: '{setVersion}' |
| 191 | steps: |
| 192 | - inject: |
| 193 | properties-file: version.properties |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 194 | - maven-set-release-version: |
JulienBe | d91a33a | 2017-09-25 15:56:34 +0200 | [diff] [blame] | 195 | maven-version: '{maven-version}' |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 196 | mvn-settings: '{mvn-settings}' |
| 197 | pom: |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 198 | - maven-target: |
| 199 | maven-version: '{maven-version}' |
Jessica Wagantall | b0e72cd | 2018-01-29 16:07:22 -0800 | [diff] [blame] | 200 | goals: 'clean deploy -B |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 201 | -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' |
JulienBe | c9d90e2 | 2017-08-08 10:44:10 +0200 | [diff] [blame] | 202 | properties: '{obj:mvn_properties}' |
JulienBe | 77903ed | 2017-07-17 15:30:26 +0200 | [diff] [blame] | 203 | settings: '{mvn-settings}' |
| 204 | settings-type: cfp |
| 205 | global-settings: 'global-settings' |
| 206 | global-settings-type: cfp |
| 207 | publishers: |
| 208 | - infra-shiplogs: |
| 209 | maven-version: '{maven-version}' |
| 210 | - checkstyle-result-daily |
| 211 | |
| 212 | - job-template: |
JulienBe | 5641aa0 | 2017-02-17 01:08:38 -0800 | [diff] [blame] | 213 | # Job template for Java daily release jobs |
| 214 | # |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 215 | # The purpose of this job template is to run: |
| 216 | # 1. maven set versions |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 217 | # 2. maven clean deploy with Sonar scans |
Pamela Dragosh | 55ceb8f | 2017-05-23 12:23:16 -0400 | [diff] [blame] | 218 | # |
| 219 | # Required Variables: |
| 220 | # branch: git branch (eg. stable/lithium or master) |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 221 | |
JulienBe | 5641aa0 | 2017-02-17 01:08:38 -0800 | [diff] [blame] | 222 | name: '{project-name}-{stream}-release-version-java-daily' |
| 223 | |
| 224 | project-type: freestyle |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 225 | disabled: '{disabled}' |
JulienBe | 5641aa0 | 2017-02-17 01:08:38 -0800 | [diff] [blame] | 226 | node: '{build-node}' |
| 227 | maven-deploy-properties: |
| 228 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 229 | - infra-properties: |
JulienBe | 5641aa0 | 2017-02-17 01:08:38 -0800 | [diff] [blame] | 230 | build-days-to-keep: '{build-days-to-keep}' |
| 231 | |
| 232 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 233 | - infra-parameters: |
JulienBe | 5641aa0 | 2017-02-17 01:08:38 -0800 | [diff] [blame] | 234 | project: '{project}' |
| 235 | branch: '{branch}' |
| 236 | refspec: 'refs/heads/{branch}' |
| 237 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | dcdce33 | 2017-02-24 11:27:09 -0800 | [diff] [blame] | 238 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 239 | maven-version: '{maven-version}' |
JulienBe | 5641aa0 | 2017-02-17 01:08:38 -0800 | [diff] [blame] | 240 | |
| 241 | scm: |
| 242 | - gerrit-trigger-scm: |
| 243 | refspec: '' |
| 244 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 245 | submodule-recursive: '{submodule-recursive}' |
JulienBe | 5641aa0 | 2017-02-17 01:08:38 -0800 | [diff] [blame] | 246 | |
| 247 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 248 | - infra-wrappers: |
JulienBe | 5641aa0 | 2017-02-17 01:08:38 -0800 | [diff] [blame] | 249 | build-timeout: '{build-timeout}' |
| 250 | |
| 251 | triggers: |
| 252 | # 11 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 253 | - timed: '@daily' |
JulienBe | 5641aa0 | 2017-02-17 01:08:38 -0800 | [diff] [blame] | 254 | - gerrit-trigger-release-manually: |
| 255 | server: '{server-name}' |
| 256 | project: '{project}' |
| 257 | branch: '{branch}' |
| 258 | |
| 259 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 260 | - lf-infra-pre-build |
JulienBe | 5641aa0 | 2017-02-17 01:08:38 -0800 | [diff] [blame] | 261 | - provide-maven-settings: |
| 262 | global-settings-file: 'global-settings' |
| 263 | settings-file: '{mvn-settings}' |
| 264 | |
JulienBe | 2f4ee07 | 2017-02-01 21:42:32 +0100 | [diff] [blame] | 265 | - inject: |
| 266 | properties-file: version.properties |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 267 | - maven-set-release-version: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 268 | maven-version: '{maven-version}' |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 269 | mvn-settings: '{mvn-settings}' |
| 270 | pom: |
JulienBe | 2f4ee07 | 2017-02-01 21:42:32 +0100 | [diff] [blame] | 271 | |
| 272 | - maven-target: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 273 | maven-version: '{maven-version}' |
Jessica Wagantall | b0e72cd | 2018-01-29 16:07:22 -0800 | [diff] [blame] | 274 | goals: 'clean deploy -B |
Andrew Grimberg | e55b622 | 2017-05-03 16:19:28 -0400 | [diff] [blame] | 275 | -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' |
Andrew Grimberg | 24443ee | 2017-02-02 08:29:12 -0800 | [diff] [blame] | 276 | properties: |
| 277 | - '{maven-deploy-properties}' |
JulienBe | 2f4ee07 | 2017-02-01 21:42:32 +0100 | [diff] [blame] | 278 | settings: '{mvn-settings}' |
| 279 | settings-type: cfp |
| 280 | global-settings: 'global-settings' |
| 281 | global-settings-type: cfp |
| 282 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 283 | publishers: |
| 284 | - infra-shiplogs: |
| 285 | maven-version: '{maven-version}' |
| 286 | |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 287 | - job-template: &merge_java_defaults |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 288 | # Job template for Java merge jobs |
| 289 | # |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 290 | # The purpose of this job template is to run: |
| 291 | # 1. maven clean deploy |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 292 | # |
| 293 | # Required Variables: |
| 294 | # branch: git branch (eg. stable/lithium or master) |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 295 | |
Andrew Grimberg | ce2286c | 2017-01-31 05:50:39 -0800 | [diff] [blame] | 296 | name: '{project-name}-{stream}-merge-java' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 297 | |
| 298 | project-type: freestyle |
| 299 | node: '{build-node}' |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 300 | pattern: '**' |
| 301 | pom: |
| 302 | mvn_properties: [] |
Jessica Wagantall | 17d0a6e | 2018-09-14 03:11:01 -0700 | [diff] [blame] | 303 | mvn-params: '' |
Houa Yang | b7778e6 | 2019-09-03 13:23:05 -0500 | [diff] [blame] | 304 | mvn-opts: '' |
| 305 | java-opts: '' |
Jessica Wagantall | 52360d6 | 2019-11-08 15:32:58 -0800 | [diff] [blame] | 306 | java-version: openjdk8 |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 307 | |
| 308 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 309 | - infra-properties: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 310 | build-days-to-keep: '{build-days-to-keep}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 311 | |
| 312 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 313 | - infra-parameters: |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 314 | project: '{project}' |
| 315 | branch: '{branch}' |
| 316 | refspec: 'refs/heads/{branch}' |
Andrew Grimberg | 597853d | 2017-01-31 05:28:25 -0800 | [diff] [blame] | 317 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | dcdce33 | 2017-02-24 11:27:09 -0800 | [diff] [blame] | 318 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 319 | maven-version: '{maven-version}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 320 | |
| 321 | scm: |
| 322 | - gerrit-trigger-scm: |
| 323 | refspec: '' |
| 324 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 325 | submodule-recursive: '{submodule-recursive}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 326 | |
| 327 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 328 | - infra-wrappers: |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 329 | build-timeout: '{build-timeout}' |
| 330 | |
| 331 | triggers: |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 332 | - gerrit-trigger-patch-merged: |
| 333 | server: '{server-name}' |
| 334 | project: '{project}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 335 | branch: '{branch}' |
Andrew Grimberg | 94ef33d | 2017-01-31 05:16:56 -0800 | [diff] [blame] | 336 | files: '{pattern}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 337 | |
| 338 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 339 | - lf-infra-pre-build |
Jessica Wagantall | 52360d6 | 2019-11-08 15:32:58 -0800 | [diff] [blame] | 340 | - lf-update-java-alternatives: |
| 341 | java-version: "{java-version}" |
Cristina Pauna | b4d24a6 | 2019-09-12 20:50:02 +0300 | [diff] [blame] | 342 | - provide-maven-settings: |
| 343 | global-settings-file: 'global-settings' |
| 344 | settings-file: '{mvn-settings}' |
Cristina Pauna | 42c1f52 | 2019-09-11 17:45:06 +0300 | [diff] [blame] | 345 | - conditional-step: |
| 346 | condition-kind: regex-match |
| 347 | regex: .*(amd64|arm64).* |
| 348 | label: '{project-name}' |
| 349 | steps: |
| 350 | - shell: !include-raw-escape: global-jjb/shell/docker-login.sh |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 351 | - maven-target: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 352 | maven-version: '{maven-version}' |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 353 | pom: '{obj:pom}' |
Jessica Wagantall | 17d0a6e | 2018-09-14 03:11:01 -0700 | [diff] [blame] | 354 | goals: 'clean deploy -B {mvn-params} |
Andrew Grimberg | e55b622 | 2017-05-03 16:19:28 -0400 | [diff] [blame] | 355 | -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' |
Houa Yang | b7778e6 | 2019-09-03 13:23:05 -0500 | [diff] [blame] | 356 | properties: |
| 357 | - MAVEN_OPTS='{mvn-opts}' |
| 358 | java-opts: |
| 359 | - "{java-opts}" |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 360 | settings: '{mvn-settings}' |
| 361 | settings-type: cfp |
| 362 | global-settings: 'global-settings' |
| 363 | global-settings-type: cfp |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 364 | properties: '{obj:mvn_properties}' |
Andrew Grimberg | ebc710a | 2017-01-30 12:59:38 -0800 | [diff] [blame] | 365 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 366 | publishers: |
| 367 | - infra-shiplogs: |
| 368 | maven-version: '{maven-version}' |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 369 | |
| 370 | - job-template: |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 371 | # Job template for Java merge jobs based on |
| 372 | # '{project-name}-{stream}-merge-java' |
| 373 | # The purpose of this job template is to run: |
| 374 | # 1. maven clean deploy |
| 375 | # |
| 376 | # This project supports maven properties. |
| 377 | # |
| 378 | # Required Variables: |
| 379 | # branch: git branch (eg. stable/lithium or master) |
| 380 | # maven-properties: properties passed to maven |
| 381 | |
| 382 | <<: *merge_java_defaults |
| 383 | name: '{project-name}-{stream}-merge-properties-java' |
| 384 | |
sebdet | 72bb360 | 2020-06-11 17:24:40 +0200 | [diff] [blame] | 385 | wrappers: |
| 386 | - lf-infra-wrappers: |
| 387 | build-timeout: '{build-timeout}' |
| 388 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 389 | |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 390 | - job-template: |
| 391 | # Job template for Java merge jobs that takes a maven template |
| 392 | # |
| 393 | # The purpose of this job template is to run: |
| 394 | # 1. maven clean deploy -P {mvn-profile} |
| 395 | # |
| 396 | # Required Variables: |
| 397 | # branch: git branch (eg. stable/lithium or master) |
| 398 | |
| 399 | <<: *merge_java_defaults |
| 400 | name: '{project-name}-{stream}-merge-profile-java' |
| 401 | |
| 402 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 403 | - lf-infra-pre-build |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 404 | - provide-maven-settings: |
| 405 | global-settings-file: 'global-settings' |
| 406 | settings-file: '{mvn-settings}' |
| 407 | |
| 408 | - docker-login |
| 409 | |
| 410 | - maven-target: |
| 411 | maven-version: '{maven-version}' |
| 412 | goals: 'clean deploy -P {mvn-profile} -B |
| 413 | -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' |
| 414 | settings: '{mvn-settings}' |
| 415 | settings-type: cfp |
| 416 | global-settings: 'global-settings' |
| 417 | global-settings-type: cfp |
| 418 | properties: |
| 419 | - docker.pull.registry=nexus3.onap.org:10001 |
| 420 | - docker.push.registry=nexus3.onap.org:10003 |
| 421 | |
| 422 | - job-template: |
| 423 | # Job template for Java merge jobs with POM not at the root |
| 424 | # |
| 425 | # The purpose of this job template is to run: |
| 426 | # 1. maven clean deploy |
| 427 | # |
| 428 | # This job supports subprojects. |
| 429 | # |
| 430 | # Required Variables: |
| 431 | # branch: git branch (eg. stable/lithium or master) |
| 432 | # pom: name/location of the pom.xml file relative to the workspace |
| 433 | # pattern: ant file-path pattern relative to the workspace used to |
| 434 | # trigger the job |
| 435 | |
| 436 | <<: *merge_java_defaults |
| 437 | name: '{project-name}-{stream}-{subproject}-merge-java' |
| 438 | |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 439 | - job-template: &docker_java_defaults |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 440 | # Job template for Docker daily jobs |
| 441 | # |
| 442 | # The purpose of this job template is to run: |
| 443 | # 1. login to the docker registry |
| 444 | # 2. docker push |
| 445 | # |
| 446 | # Required Variables: |
| 447 | # branch: git branch (eg. stable/lithium or master) |
| 448 | |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 449 | name: '{project-name}-{stream}-docker-java-daily' |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 450 | id: '{project-name}-{stream}-docker-java-daily' |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 451 | project-type: freestyle |
Jessica Wagantall | 34e6d6b | 2018-11-08 12:43:06 -0800 | [diff] [blame] | 452 | node: '{build-node}' |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 453 | disabled: '{disabled}' |
Anil Belur | d680266 | 2020-07-28 13:45:10 +1000 | [diff] [blame] | 454 | java-version: openjdk8 |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 455 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 456 | - infra-properties: |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 457 | build-days-to-keep: '{build-days-to-keep}' |
| 458 | |
| 459 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 460 | - infra-parameters: |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 461 | project: '{project}' |
| 462 | branch: '{branch}' |
| 463 | refspec: 'refs/heads/{branch}' |
| 464 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | dcdce33 | 2017-02-24 11:27:09 -0800 | [diff] [blame] | 465 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 466 | maven-version: '{maven-version}' |
Jessica Wagantall | f8f030a | 2018-05-07 11:13:19 -0700 | [diff] [blame] | 467 | - maven-params: |
| 468 | mvn-params: '{mvn-params}' |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 469 | |
| 470 | scm: |
| 471 | - gerrit-trigger-scm: |
| 472 | refspec: '' |
| 473 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 474 | submodule-recursive: '{submodule-recursive}' |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 475 | |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 476 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 477 | - infra-wrappers: |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 478 | build-timeout: '{build-timeout}' |
| 479 | |
| 480 | triggers: |
JulienBe | 0d8c2c3 | 2017-02-16 11:50:48 -0800 | [diff] [blame] | 481 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 482 | - timed: '@daily' |
JulienBe | 0d8c2c3 | 2017-02-16 11:50:48 -0800 | [diff] [blame] | 483 | - gerrit-trigger-release-manually: |
| 484 | server: '{server-name}' |
| 485 | project: '{project}' |
| 486 | branch: '{branch}' |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 487 | |
| 488 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 489 | - lf-infra-pre-build |
Anil Belur | d680266 | 2020-07-28 13:45:10 +1000 | [diff] [blame] | 490 | - lf-update-java-alternatives: |
| 491 | java-version: "{java-version}" |
| 492 | |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 493 | - provide-maven-settings: |
| 494 | global-settings-file: 'global-settings' |
| 495 | settings-file: '{mvn-settings}' |
Anaël Closson | 7313fea | 2017-02-14 15:56:21 +0100 | [diff] [blame] | 496 | |
Anaël Closson | 63e090e | 2017-02-15 14:50:45 +0100 | [diff] [blame] | 497 | - docker-login |
| 498 | |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 499 | - maven-docker-push-daily: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 500 | maven-version: '{maven-version}' |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 501 | mvn-settings: '{mvn-settings}' |
| 502 | pom: '{docker-pom}' |
Anaël Closson | 30a5c77 | 2017-02-16 15:02:56 +0100 | [diff] [blame] | 503 | # use default as mvn-profile if profile is not needed |
| 504 | mvn-profile: '{mvn-profile}' |
Jessica Wagantall | f8f030a | 2018-05-07 11:13:19 -0700 | [diff] [blame] | 505 | mvn-params: '{mvn-params}' |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 506 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 507 | publishers: |
| 508 | - infra-shiplogs: |
| 509 | maven-version: '{maven-version}' |
| 510 | |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 511 | - job-template: |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 512 | # Job template for Docker daily jobs |
| 513 | # |
| 514 | # The purpose of this job template is to run: |
| 515 | # 1. login to the docker registry |
| 516 | # 2. docker push |
| 517 | # |
| 518 | # Required Variables: |
| 519 | # branch: git branch (eg. stable/lithium or master) |
| 520 | |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 521 | <<: *docker_java_defaults |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 522 | name: '{project-name}-{stream}-docker-java-daily' |
| 523 | id: docker-java-daily |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 524 | node: '{build-node}' |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 525 | wrappers: |
| 526 | - infra-wrappers-docker-build: |
| 527 | build-timeout: '{build-timeout}' |
| 528 | |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 529 | - job-template: |
JulienBe | 91c56ec | 2017-06-21 23:37:39 +0200 | [diff] [blame] | 530 | # Job template for building & pushing docker images |
| 531 | # |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 532 | # The purpose of this job template is to run: |
JulienBe | 91c56ec | 2017-06-21 23:37:39 +0200 | [diff] [blame] | 533 | # 1. login to the docker registry |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 534 | # 2. run a specified shell builder |
| 535 | # |
| 536 | # Required Variables: |
| 537 | # pom: name/location of the pom.xml file relative to the workspace |
| 538 | # maven-properties: properties passed to maven |
| 539 | |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 540 | name: '{project-name}-{stream}-docker-java-shell-daily' |
| 541 | project-type: freestyle |
Jessica Wagantall | fe5efea | 2018-08-07 16:02:39 -0700 | [diff] [blame] | 542 | node: '{build-node}' |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 543 | disabled: '{disabled}' |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 544 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 545 | - infra-properties: |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 546 | build-days-to-keep: '{build-days-to-keep}' |
| 547 | |
| 548 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 549 | - infra-parameters: |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 550 | project: '{project}' |
| 551 | branch: '{branch}' |
| 552 | refspec: 'refs/heads/{branch}' |
| 553 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | dcdce33 | 2017-02-24 11:27:09 -0800 | [diff] [blame] | 554 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 555 | maven-version: '{maven-version}' |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 556 | |
| 557 | scm: |
| 558 | - gerrit-trigger-scm: |
| 559 | refspec: '' |
| 560 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 561 | submodule-recursive: '{submodule-recursive}' |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 562 | |
| 563 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 564 | - infra-wrappers: |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 565 | build-timeout: '{build-timeout}' |
| 566 | |
| 567 | triggers: |
| 568 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 569 | - timed: '@daily' |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 570 | - gerrit-trigger-release-manually: |
| 571 | server: '{server-name}' |
| 572 | project: '{project}' |
| 573 | branch: '{branch}' |
| 574 | |
| 575 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 576 | - lf-infra-pre-build |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 577 | - provide-maven-settings: |
| 578 | global-settings-file: 'global-settings' |
| 579 | settings-file: '{mvn-settings}' |
| 580 | |
| 581 | - docker-login |
| 582 | |
Pamela Dragosh | 366fbc3 | 2017-02-19 20:09:09 -0500 | [diff] [blame] | 583 | - maven-target: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 584 | maven-version: '{maven-version}' |
Pamela Dragosh | 366fbc3 | 2017-02-19 20:09:09 -0500 | [diff] [blame] | 585 | goals: '{mvn-goals}' |
| 586 | settings: '{mvn-settings}' |
| 587 | settings-type: cfp |
| 588 | global-settings: 'global-settings' |
| 589 | global-settings-type: cfp |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 590 | |
| 591 | - shell: '{script}' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 592 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 593 | publishers: |
| 594 | - infra-shiplogs: |
| 595 | maven-version: '{maven-version}' |
| 596 | |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 597 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 598 | # Job template for building & pushing docker images |
| 599 | # |
| 600 | # The purpose of this job template is to run: |
| 601 | # 1. login to the docker registry |
Jessica Wagantall | 35b36e4 | 2018-08-07 16:10:25 -0700 | [diff] [blame] | 602 | # 2. run a specified shell builder |
| 603 | # |
| 604 | # Required Variables: |
| 605 | # pom: name/location of the pom.xml file relative to the workspace |
| 606 | # maven-properties: properties passed to maven |
| 607 | |
| 608 | name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily' |
| 609 | project-type: freestyle |
| 610 | node: '{build-node}' |
| 611 | disabled: '{disabled}' |
| 612 | properties: |
| 613 | - infra-properties: |
| 614 | build-days-to-keep: '{build-days-to-keep}' |
| 615 | |
| 616 | parameters: |
| 617 | - infra-parameters: |
| 618 | project: '{project}' |
| 619 | branch: '{branch}' |
| 620 | refspec: 'refs/heads/{branch}' |
| 621 | artifacts: '{archive-artifacts}' |
| 622 | - maven-exec: |
| 623 | maven-version: '{maven-version}' |
| 624 | |
| 625 | scm: |
| 626 | - gerrit-trigger-scm: |
| 627 | refspec: '' |
| 628 | choosing-strategy: 'default' |
| 629 | submodule-recursive: '{submodule-recursive}' |
| 630 | |
| 631 | wrappers: |
| 632 | - infra-wrappers: |
| 633 | build-timeout: '{build-timeout}' |
| 634 | |
| 635 | triggers: |
| 636 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 637 | - timed: '@daily' |
Jessica Wagantall | 35b36e4 | 2018-08-07 16:10:25 -0700 | [diff] [blame] | 638 | - gerrit-trigger-release-manually: |
| 639 | server: '{server-name}' |
| 640 | project: '{project}' |
| 641 | branch: '{branch}' |
| 642 | |
| 643 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 644 | - lf-infra-pre-build |
Jessica Wagantall | 35b36e4 | 2018-08-07 16:10:25 -0700 | [diff] [blame] | 645 | - provide-maven-settings: |
| 646 | global-settings-file: 'global-settings' |
| 647 | settings-file: '{mvn-settings}' |
| 648 | |
| 649 | - docker-login |
| 650 | |
| 651 | - maven-target: |
| 652 | maven-version: '{maven-version}' |
| 653 | pom: '{pom}' |
| 654 | goals: '{mvn-goals}' |
| 655 | settings: '{mvn-settings}' |
| 656 | settings-type: cfp |
| 657 | global-settings: 'global-settings' |
| 658 | global-settings-type: cfp |
| 659 | |
| 660 | - shell: '{script}' |
| 661 | |
| 662 | publishers: |
| 663 | - infra-shiplogs: |
| 664 | maven-version: '{maven-version}' |
| 665 | |
| 666 | - job-template: |
| 667 | # Job template for building & pushing docker images |
| 668 | # |
| 669 | # The purpose of this job template is to run: |
| 670 | # 1. login to the docker registry |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 671 | # 2. inject a version.properties file and set versions |
| 672 | # 3. run a specified shell builder |
| 673 | # |
| 674 | # Required Variables: |
| 675 | # pom: name/location of the pom.xml file relative to the workspace |
| 676 | # maven-properties: properties passed to maven |
| 677 | |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 678 | name: '{project-name}-{stream}-docker-java-version-shell-daily' |
| 679 | project-type: freestyle |
Jessica Wagantall | d50aa19 | 2018-11-08 13:03:33 -0800 | [diff] [blame] | 680 | node: '{build-node}' |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 681 | disabled: '{disabled}' |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 682 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 683 | - infra-properties: |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 684 | build-days-to-keep: '{build-days-to-keep}' |
| 685 | |
| 686 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 687 | - infra-parameters: |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 688 | project: '{project}' |
| 689 | branch: '{branch}' |
| 690 | refspec: 'refs/heads/{branch}' |
| 691 | artifacts: '{archive-artifacts}' |
| 692 | - maven-exec: |
| 693 | maven-version: '{maven-version}' |
| 694 | |
| 695 | scm: |
| 696 | - gerrit-trigger-scm: |
| 697 | refspec: '' |
| 698 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 699 | submodule-recursive: '{submodule-recursive}' |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 700 | |
| 701 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 702 | - infra-wrappers: |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 703 | build-timeout: '{build-timeout}' |
| 704 | |
| 705 | triggers: |
| 706 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 707 | - timed: '@daily' |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 708 | - gerrit-trigger-release-manually: |
| 709 | server: '{server-name}' |
| 710 | project: '{project}' |
| 711 | branch: '{branch}' |
| 712 | |
| 713 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 714 | - lf-infra-pre-build |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 715 | - provide-maven-settings: |
| 716 | global-settings-file: 'global-settings' |
| 717 | settings-file: '{mvn-settings}' |
| 718 | |
| 719 | - inject: |
| 720 | properties-file: version.properties |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 721 | - maven-set-release-version: |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 722 | maven-version: '{maven-version}' |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 723 | mvn-settings: '{mvn-settings}' |
| 724 | pom: |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 725 | |
| 726 | - docker-login |
| 727 | |
| 728 | - maven-target: |
| 729 | maven-version: '{maven-version}' |
| 730 | goals: '{mvn-goals}' |
| 731 | settings: '{mvn-settings}' |
| 732 | settings-type: cfp |
| 733 | global-settings: 'global-settings' |
| 734 | global-settings-type: cfp |
| 735 | |
| 736 | - shell: '{script}' |
| 737 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 738 | publishers: |
| 739 | - infra-shiplogs: |
| 740 | maven-version: '{maven-version}' |
| 741 | |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 742 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 743 | # Job template for building & pushing docker images |
| 744 | # |
| 745 | # The purpose of this job template is to run: |
| 746 | # 1. login to the docker registry |
| 747 | # 2. inject a version.properties file and set versions |
| 748 | # 3. run a specified shell builder |
| 749 | # |
| 750 | # This template supports subprojects. |
| 751 | # |
| 752 | # Required Variables: |
| 753 | # pom: name/location of the pom.xml file relative to the workspace |
| 754 | # maven-properties: properties passed to maven |
| 755 | |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 756 | name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily' |
| 757 | project-type: freestyle |
Jessica Wagantall | 612da80 | 2020-03-31 10:44:03 -0700 | [diff] [blame] | 758 | node: 'ubuntu1804-docker-8c-8g' |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 759 | disabled: '{disabled}' |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 760 | properties: |
| 761 | - infra-properties: |
| 762 | build-days-to-keep: '{build-days-to-keep}' |
| 763 | |
| 764 | parameters: |
| 765 | - infra-parameters: |
| 766 | project: '{project}' |
| 767 | branch: '{branch}' |
| 768 | refspec: 'refs/heads/{branch}' |
| 769 | artifacts: '{archive-artifacts}' |
| 770 | - maven-exec: |
| 771 | maven-version: '{maven-version}' |
| 772 | |
| 773 | scm: |
| 774 | - gerrit-trigger-scm: |
| 775 | refspec: '' |
| 776 | choosing-strategy: 'default' |
| 777 | submodule-recursive: '{submodule-recursive}' |
| 778 | |
| 779 | wrappers: |
| 780 | - infra-wrappers: |
| 781 | build-timeout: '{build-timeout}' |
| 782 | |
| 783 | triggers: |
| 784 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 785 | - timed: '@daily' |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 786 | - gerrit-trigger-release-manually: |
| 787 | server: '{server-name}' |
| 788 | project: '{project}' |
| 789 | branch: '{branch}' |
| 790 | |
| 791 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 792 | - lf-infra-pre-build |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 793 | - provide-maven-settings: |
| 794 | global-settings-file: 'global-settings' |
| 795 | settings-file: '{mvn-settings}' |
| 796 | |
| 797 | - inject: |
| 798 | properties-file: version.properties |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 799 | - maven-set-release-version: |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 800 | maven-version: '{maven-version}' |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 801 | mvn-settings: '{mvn-settings}' |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 802 | pom: '{pom}' |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 803 | |
| 804 | - docker-login |
| 805 | |
| 806 | - maven-target: |
| 807 | maven-version: '{maven-version}' |
| 808 | pom: '{pom}' |
| 809 | goals: '{mvn-goals}' |
| 810 | settings: '{mvn-settings}' |
| 811 | settings-type: cfp |
| 812 | global-settings: 'global-settings' |
| 813 | global-settings-type: cfp |
| 814 | |
| 815 | - shell: '{script}' |
| 816 | |
| 817 | publishers: |
| 818 | - infra-shiplogs: |
| 819 | maven-version: '{maven-version}' |
| 820 | |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 821 | - job-template: &docker_version_java_defaults |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 822 | # Job template for building & pushing docker images |
| 823 | # |
| 824 | # The purpose of this job template is to run: |
| 825 | # 1. login to the docker registry |
| 826 | # 2. inject a version.properties file and set versions |
| 827 | # 3. run a docker push |
| 828 | # |
| 829 | # Required Variables: |
| 830 | # pom: name/location of the pom.xml file relative to the workspace |
| 831 | # profile: the docker profile defined in the pom |
| 832 | # maven-properties: properties passed to maven |
| 833 | |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 834 | name: '{project-name}-{stream}-docker-version-java-daily' |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 835 | id: '{project-name}-{stream}-docker-version-java-daily' |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 836 | project-type: freestyle |
Paul Vaduva | 6dd8854 | 2018-12-11 16:59:12 +0100 | [diff] [blame] | 837 | node: '{build-node}' |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 838 | disabled: '{disabled}' |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 839 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 840 | - infra-properties: |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 841 | build-days-to-keep: '{build-days-to-keep}' |
| 842 | |
| 843 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 844 | - infra-parameters: |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 845 | project: '{project}' |
| 846 | branch: '{branch}' |
| 847 | refspec: 'refs/heads/{branch}' |
| 848 | artifacts: '{archive-artifacts}' |
| 849 | - maven-exec: |
| 850 | maven-version: '{maven-version}' |
Jessica Wagantall | f8f030a | 2018-05-07 11:13:19 -0700 | [diff] [blame] | 851 | - maven-params: |
| 852 | mvn-params: '{mvn-params}' |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 853 | |
| 854 | scm: |
| 855 | - gerrit-trigger-scm: |
| 856 | refspec: '' |
| 857 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 858 | submodule-recursive: '{submodule-recursive}' |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 859 | |
| 860 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 861 | - infra-wrappers: |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 862 | build-timeout: '{build-timeout}' |
| 863 | |
| 864 | triggers: |
| 865 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 866 | - timed: '@daily' |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 867 | - gerrit-trigger-release-manually: |
| 868 | server: '{server-name}' |
| 869 | project: '{project}' |
| 870 | branch: '{branch}' |
| 871 | |
| 872 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 873 | - lf-infra-pre-build |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 874 | - provide-maven-settings: |
| 875 | global-settings-file: 'global-settings' |
| 876 | settings-file: '{mvn-settings}' |
| 877 | |
| 878 | - inject: |
| 879 | properties-file: version.properties |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 880 | - maven-set-release-version: |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 881 | maven-version: '{maven-version}' |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 882 | mvn-settings: '{mvn-settings}' |
| 883 | pom: |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 884 | |
| 885 | - docker-login |
| 886 | |
| 887 | - maven-docker-push-daily: |
| 888 | maven-version: '{maven-version}' |
| 889 | mvn-settings: '{mvn-settings}' |
| 890 | pom: '{docker-pom}' |
| 891 | # use default as mvn-profile if profile is not needed |
| 892 | mvn-profile: '{mvn-profile}' |
Jessica Wagantall | f8f030a | 2018-05-07 11:13:19 -0700 | [diff] [blame] | 893 | mvn-params: '{mvn-params}' |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 894 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 895 | publishers: |
| 896 | - infra-shiplogs: |
| 897 | maven-version: '{maven-version}' |
| 898 | |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 899 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 900 | # Job template for building & pushing docker images |
| 901 | # |
| 902 | # The purpose of this job template is to run: |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 903 | # 1. login to the docker registry |
| 904 | # 2. inject a version.properties file and set versions |
| 905 | # 3. run a docker push |
| 906 | # |
| 907 | # Required Variables: |
| 908 | # pom: name/location of the pom.xml file relative to the workspace |
| 909 | # profile: the docker profile defined in the pom |
| 910 | # maven-properties: properties passed to maven |
| 911 | |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 912 | <<: *docker_version_java_defaults |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 913 | name: '{project-name}-{stream}-docker-version-java-daily' |
| 914 | id: 'docker-version-java-daily' |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 915 | node: '{build-node}' |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 916 | wrappers: |
| 917 | - infra-wrappers-docker-build: |
| 918 | build-timeout: '{build-timeout}' |
| 919 | |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 920 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 921 | # Job template for building & pushing docker images for AAI specific repos |
| 922 | # |
| 923 | # The purpose of this job template is to run: |
| 924 | # 1. login to the docker registry |
| 925 | # 2. run maven goals |
| 926 | # 3. run include-docker-push.sh |
| 927 | # |
| 928 | # Required Variables: |
| 929 | # pom: name/location of the pom.xml file relative to the workspace |
| 930 | # maven-properties: properties passed to maven |
| 931 | |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 932 | name: '{project-name}-{stream}-aai-docker-java-daily' |
| 933 | project-type: freestyle |
Jessica Wagantall | ab30bf6 | 2018-11-08 12:20:48 -0800 | [diff] [blame] | 934 | node: '{build-node}' |
Gary Wu | dc3f295 | 2017-08-23 16:48:59 -0700 | [diff] [blame] | 935 | docker-image-name: '' |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 936 | disabled: '{disabled}' |
Jessica Wagantall | 392b8f0 | 2020-10-05 12:38:33 -0700 | [diff] [blame] | 937 | java-version: 'openjdk8' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 938 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 939 | - infra-properties: |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 940 | build-days-to-keep: '{build-days-to-keep}' |
| 941 | |
| 942 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 943 | - infra-parameters: |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 944 | project: '{project}' |
| 945 | branch: '{branch}' |
| 946 | refspec: 'refs/heads/{branch}' |
| 947 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | dcdce33 | 2017-02-24 11:27:09 -0800 | [diff] [blame] | 948 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 949 | maven-version: '{maven-version}' |
Gary Wu | dc3f295 | 2017-08-23 16:48:59 -0700 | [diff] [blame] | 950 | - docker-image-name: |
| 951 | docker-image-name: '{docker-image-name}' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 952 | |
| 953 | scm: |
| 954 | - gerrit-trigger-scm: |
| 955 | refspec: '' |
| 956 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 957 | submodule-recursive: '{submodule-recursive}' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 958 | |
| 959 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 960 | - infra-wrappers: |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 961 | build-timeout: '{build-timeout}' |
| 962 | |
| 963 | triggers: |
| 964 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 965 | - timed: '@daily' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 966 | - gerrit-trigger-release-manually: |
| 967 | server: '{server-name}' |
| 968 | project: '{project}' |
| 969 | branch: '{branch}' |
| 970 | |
| 971 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 972 | - lf-infra-pre-build |
Jessica Wagantall | 392b8f0 | 2020-10-05 12:38:33 -0700 | [diff] [blame] | 973 | - lf-update-java-alternatives: |
| 974 | java-version: "{java-version}" |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 975 | - provide-maven-settings: |
| 976 | global-settings-file: 'global-settings' |
| 977 | settings-file: '{mvn-settings}' |
| 978 | |
| 979 | - docker-login |
| 980 | |
| 981 | - maven-target: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 982 | maven-version: '{maven-version}' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 983 | pom: 'pom.xml' |
Andrew Grimberg | e55b622 | 2017-05-03 16:19:28 -0400 | [diff] [blame] | 984 | goals: 'clean install -DskipTests -B |
| 985 | -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 986 | settings: '{mvn-settings}' |
| 987 | settings-type: cfp |
| 988 | global-settings: 'global-settings' |
| 989 | global-settings-type: cfp |
| 990 | |
| 991 | - maven-target: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 992 | maven-version: '{maven-version}' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 993 | pom: '{pom}' |
| 994 | goals: '{mvn-goals}' |
| 995 | settings: '{mvn-settings}' |
| 996 | settings-type: cfp |
| 997 | global-settings: 'global-settings' |
| 998 | global-settings-type: cfp |
| 999 | properties: |
| 1000 | - maven.test.skip=true |
Jeremy Phelps | 48028ab | 2017-03-28 15:38:24 -0500 | [diff] [blame] | 1001 | - docker.pull.registry=nexus3.onap.org:10001 |
| 1002 | - docker.push.registry=nexus3.onap.org:10003 |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1003 | |
Venkata Harish K Kajur | bf07d0a | 2017-03-26 11:58:15 +0000 | [diff] [blame] | 1004 | - shell: !include-raw-escape: include-docker-push.sh |
Carsten Lund | 2d06a69 | 2017-02-23 18:23:07 +0000 | [diff] [blame] | 1005 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 1006 | publishers: |
| 1007 | - infra-shiplogs: |
| 1008 | maven-version: '{maven-version}' |
| 1009 | |
Carsten Lund | 2d06a69 | 2017-02-23 18:23:07 +0000 | [diff] [blame] | 1010 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 1011 | # Job template for Java merge jobs for SDC specific repos |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1012 | # |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 1013 | # The purpose of this job template is to run: |
| 1014 | # 1. maven clean deploy |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1015 | # |
| 1016 | # Required Variables: |
| 1017 | # branch: git branch (eg. stable/lithium or master) |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 1018 | |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 1019 | <<: *merge_java_defaults |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1020 | name: '{project-name}-{stream}-sdc-merge-java' |
| 1021 | |
Paul Vaduva | 3aebd31 | 2019-02-01 13:35:21 +0100 | [diff] [blame] | 1022 | node: '{build-node}' |
Jessica Wagantall | 9a89de4 | 2018-04-18 11:35:17 -0700 | [diff] [blame] | 1023 | build-timeout: 120 |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1024 | |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1025 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 1026 | - lf-infra-pre-build |
sebdet | 7ac8160 | 2020-09-16 14:12:44 +0200 | [diff] [blame] | 1027 | - lf-update-java-alternatives: |
| 1028 | java-version: "{java-version}" |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1029 | - provide-maven-settings: |
| 1030 | global-settings-file: 'global-settings' |
| 1031 | settings-file: '{mvn-settings}' |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1032 | |
| 1033 | - docker-login |
| 1034 | |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 1035 | - maven-docker-push-daily: |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1036 | maven-version: '{maven-version}' |
ig6133 | cb3f823 | 2017-04-05 14:22:42 +0300 | [diff] [blame] | 1037 | mvn-settings: '{mvn-settings}' |
| 1038 | pom: '{docker-pom}' |
| 1039 | # use default as mvn-profile if profile is not needed |
| 1040 | mvn-profile: '{mvn-profile}' |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 1041 | mvn-params: '' |
Bengt Thuree | 1515daa | 2019-09-10 13:39:04 +0200 | [diff] [blame] | 1042 | |
| 1043 | - job-template: |
| 1044 | # Job template for Java merge jobs on multiple architectures |
| 1045 | # |
| 1046 | # The purpose of this job template is to: |
| 1047 | # 1. Run parallel {project-name}-{stream}-verify-java jobs for each supported architecture |
| 1048 | # 2. Build and push a docker manifest list for the images created by |
| 1049 | # the previous jobs |
| 1050 | |
| 1051 | name: '{project-name}-multiarch-{stream}-merge-java' |
| 1052 | node: '{build-node}' |
| 1053 | project-type: multijob |
| 1054 | disabled: '{obj:disabled}' |
| 1055 | pattern: '**' |
| 1056 | |
| 1057 | parameters: |
| 1058 | - lf-infra-parameters: |
| 1059 | project: '{project}' |
| 1060 | stream: '{stream}' |
| 1061 | branch: '{branch}' |
| 1062 | - string: |
| 1063 | name: DOCKER_REGISTRY |
| 1064 | default: 'none' |
| 1065 | - string: |
| 1066 | name: DOCKERHUB_REGISTRY |
| 1067 | default: 'registry-1.docker.io' |
| 1068 | |
| 1069 | properties: |
| 1070 | - throttle: |
| 1071 | max-per-node: 1 |
| 1072 | option: 'project' |
| 1073 | - build-blocker: |
| 1074 | use-build-blocker: true |
| 1075 | blocking-jobs: |
| 1076 | - '{project-name}-.*-merge-.*' |
| 1077 | blocking-level: 'NODE' |
| 1078 | |
| 1079 | scm: |
| 1080 | - gerrit-trigger-scm: |
| 1081 | refspec: '' |
| 1082 | choosing-strategy: 'default' |
| 1083 | submodule-recursive: '{submodule-recursive}' |
| 1084 | |
| 1085 | wrappers: |
| 1086 | - infra-wrappers: |
| 1087 | build-timeout: '{build-timeout}' |
| 1088 | |
| 1089 | triggers: |
| 1090 | - gerrit-trigger-patch-merged: |
| 1091 | server: '{server-name}' |
| 1092 | project: '{project}' |
| 1093 | branch: '{branch}' |
| 1094 | files: '{pattern}' |
| 1095 | |
| 1096 | builders: |
| 1097 | - multijob: |
| 1098 | name: 'build docker images' |
| 1099 | condition: ALWAYS |
| 1100 | execution-type: PARALLEL |
| 1101 | projects: |
| 1102 | - name: '{project-name}-amd64-{stream}-merge-java' |
| 1103 | kill-phase-on: FAILURE |
| 1104 | current-parameters: true |
| 1105 | - name: '{project-name}-arm64-{stream}-merge-java' |
| 1106 | kill-phase-on: NEVER |
| 1107 | current-parameters: true |
| 1108 | - multijob: |
| 1109 | name: 'publish docker manifest' |
| 1110 | condition: SUCCESSFUL |
| 1111 | execution-type: PARALLEL |
| 1112 | projects: |
| 1113 | - name: '{project-name}-docker-manifest-{stream}' |
| 1114 | current-parameters: true |
| 1115 | predefined-parameters: | |
| 1116 | PARENT_JOB_NAME=$JOB_NAME |
| 1117 | DOCKERHUB_REGISTRY=docker.io |