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