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 | |
sebdet | 72bb360 | 2020-06-11 17:24:40 +0200 | [diff] [blame] | 454 | wrappers: |
| 455 | - lf-infra-wrappers: |
| 456 | build-timeout: '{build-timeout}' |
| 457 | jenkins-ssh-credential: '{jenkins-ssh-credential}' |
| 458 | |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 459 | - job-template: |
| 460 | # Job template for Java merge jobs that takes a maven template |
| 461 | # |
| 462 | # The purpose of this job template is to run: |
| 463 | # 1. maven clean deploy -P {mvn-profile} |
| 464 | # |
| 465 | # Required Variables: |
| 466 | # branch: git branch (eg. stable/lithium or master) |
| 467 | |
| 468 | <<: *merge_java_defaults |
| 469 | name: '{project-name}-{stream}-merge-profile-java' |
| 470 | |
| 471 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 472 | - lf-infra-pre-build |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 473 | - provide-maven-settings: |
| 474 | global-settings-file: 'global-settings' |
| 475 | settings-file: '{mvn-settings}' |
| 476 | |
| 477 | - docker-login |
| 478 | |
| 479 | - maven-target: |
| 480 | maven-version: '{maven-version}' |
| 481 | goals: 'clean deploy -P {mvn-profile} -B |
| 482 | -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn' |
| 483 | settings: '{mvn-settings}' |
| 484 | settings-type: cfp |
| 485 | global-settings: 'global-settings' |
| 486 | global-settings-type: cfp |
| 487 | properties: |
| 488 | - docker.pull.registry=nexus3.onap.org:10001 |
| 489 | - docker.push.registry=nexus3.onap.org:10003 |
| 490 | |
| 491 | - job-template: |
| 492 | # Job template for Java merge jobs with POM not at the root |
| 493 | # |
| 494 | # The purpose of this job template is to run: |
| 495 | # 1. maven clean deploy |
| 496 | # |
| 497 | # This job supports subprojects. |
| 498 | # |
| 499 | # Required Variables: |
| 500 | # branch: git branch (eg. stable/lithium or master) |
| 501 | # pom: name/location of the pom.xml file relative to the workspace |
| 502 | # pattern: ant file-path pattern relative to the workspace used to |
| 503 | # trigger the job |
| 504 | |
| 505 | <<: *merge_java_defaults |
| 506 | name: '{project-name}-{stream}-{subproject}-merge-java' |
| 507 | |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 508 | - job-template: &docker_java_defaults |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 509 | # Job template for Docker daily jobs |
| 510 | # |
| 511 | # The purpose of this job template is to run: |
| 512 | # 1. login to the docker registry |
| 513 | # 2. docker push |
| 514 | # |
| 515 | # Required Variables: |
| 516 | # branch: git branch (eg. stable/lithium or master) |
| 517 | |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 518 | name: '{project-name}-{stream}-docker-java-daily' |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 519 | id: '{project-name}-{stream}-docker-java-daily' |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 520 | project-type: freestyle |
Jessica Wagantall | 34e6d6b | 2018-11-08 12:43:06 -0800 | [diff] [blame] | 521 | node: '{build-node}' |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 522 | disabled: '{disabled}' |
Anil Belur | d680266 | 2020-07-28 13:45:10 +1000 | [diff] [blame] | 523 | java-version: openjdk8 |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 524 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 525 | - infra-properties: |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 526 | build-days-to-keep: '{build-days-to-keep}' |
| 527 | |
| 528 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 529 | - infra-parameters: |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 530 | project: '{project}' |
| 531 | branch: '{branch}' |
| 532 | refspec: 'refs/heads/{branch}' |
| 533 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | dcdce33 | 2017-02-24 11:27:09 -0800 | [diff] [blame] | 534 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 535 | maven-version: '{maven-version}' |
Jessica Wagantall | f8f030a | 2018-05-07 11:13:19 -0700 | [diff] [blame] | 536 | - maven-params: |
| 537 | mvn-params: '{mvn-params}' |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 538 | |
| 539 | scm: |
| 540 | - gerrit-trigger-scm: |
| 541 | refspec: '' |
| 542 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 543 | submodule-recursive: '{submodule-recursive}' |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 544 | |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 545 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 546 | - infra-wrappers: |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 547 | build-timeout: '{build-timeout}' |
| 548 | |
| 549 | triggers: |
JulienBe | 0d8c2c3 | 2017-02-16 11:50:48 -0800 | [diff] [blame] | 550 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 551 | - timed: '@daily' |
JulienBe | 0d8c2c3 | 2017-02-16 11:50:48 -0800 | [diff] [blame] | 552 | - gerrit-trigger-release-manually: |
| 553 | server: '{server-name}' |
| 554 | project: '{project}' |
| 555 | branch: '{branch}' |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 556 | |
| 557 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 558 | - lf-infra-pre-build |
Anil Belur | d680266 | 2020-07-28 13:45:10 +1000 | [diff] [blame] | 559 | - lf-update-java-alternatives: |
| 560 | java-version: "{java-version}" |
| 561 | |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 562 | - provide-maven-settings: |
| 563 | global-settings-file: 'global-settings' |
| 564 | settings-file: '{mvn-settings}' |
Anaël Closson | 7313fea | 2017-02-14 15:56:21 +0100 | [diff] [blame] | 565 | |
Anaël Closson | 63e090e | 2017-02-15 14:50:45 +0100 | [diff] [blame] | 566 | - docker-login |
| 567 | |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 568 | - maven-docker-push-daily: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 569 | maven-version: '{maven-version}' |
Anaël Closson | abbafb5 | 2017-02-09 17:55:10 +0100 | [diff] [blame] | 570 | mvn-settings: '{mvn-settings}' |
| 571 | pom: '{docker-pom}' |
Anaël Closson | 30a5c77 | 2017-02-16 15:02:56 +0100 | [diff] [blame] | 572 | # use default as mvn-profile if profile is not needed |
| 573 | mvn-profile: '{mvn-profile}' |
Jessica Wagantall | f8f030a | 2018-05-07 11:13:19 -0700 | [diff] [blame] | 574 | mvn-params: '{mvn-params}' |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 575 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 576 | publishers: |
| 577 | - infra-shiplogs: |
| 578 | maven-version: '{maven-version}' |
| 579 | |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 580 | - job-template: |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 581 | # Job template for Docker daily jobs |
| 582 | # |
| 583 | # The purpose of this job template is to run: |
| 584 | # 1. login to the docker registry |
| 585 | # 2. docker push |
| 586 | # |
| 587 | # Required Variables: |
| 588 | # branch: git branch (eg. stable/lithium or master) |
| 589 | |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 590 | <<: *docker_java_defaults |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 591 | name: '{project-name}-{stream}-docker-java-daily' |
| 592 | id: docker-java-daily |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 593 | node: '{build-node}' |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 594 | wrappers: |
| 595 | - infra-wrappers-docker-build: |
| 596 | build-timeout: '{build-timeout}' |
| 597 | |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 598 | - job-template: |
JulienBe | 91c56ec | 2017-06-21 23:37:39 +0200 | [diff] [blame] | 599 | # Job template for building & pushing docker images |
| 600 | # |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 601 | # The purpose of this job template is to run: |
JulienBe | 91c56ec | 2017-06-21 23:37:39 +0200 | [diff] [blame] | 602 | # 1. login to the docker registry |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 603 | # 2. run a specified shell builder |
| 604 | # |
| 605 | # Required Variables: |
| 606 | # pom: name/location of the pom.xml file relative to the workspace |
| 607 | # maven-properties: properties passed to maven |
| 608 | |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 609 | name: '{project-name}-{stream}-docker-java-shell-daily' |
| 610 | project-type: freestyle |
Jessica Wagantall | fe5efea | 2018-08-07 16:02:39 -0700 | [diff] [blame] | 611 | node: '{build-node}' |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 612 | disabled: '{disabled}' |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 613 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 614 | - infra-properties: |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 615 | build-days-to-keep: '{build-days-to-keep}' |
| 616 | |
| 617 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 618 | - infra-parameters: |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 619 | project: '{project}' |
| 620 | branch: '{branch}' |
| 621 | refspec: 'refs/heads/{branch}' |
| 622 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | dcdce33 | 2017-02-24 11:27:09 -0800 | [diff] [blame] | 623 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 624 | maven-version: '{maven-version}' |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 625 | |
| 626 | scm: |
| 627 | - gerrit-trigger-scm: |
| 628 | refspec: '' |
| 629 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 630 | submodule-recursive: '{submodule-recursive}' |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 631 | |
| 632 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 633 | - infra-wrappers: |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 634 | build-timeout: '{build-timeout}' |
| 635 | |
| 636 | triggers: |
| 637 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 638 | - timed: '@daily' |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 639 | - gerrit-trigger-release-manually: |
| 640 | server: '{server-name}' |
| 641 | project: '{project}' |
| 642 | branch: '{branch}' |
| 643 | |
| 644 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 645 | - lf-infra-pre-build |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 646 | - provide-maven-settings: |
| 647 | global-settings-file: 'global-settings' |
| 648 | settings-file: '{mvn-settings}' |
| 649 | |
| 650 | - docker-login |
| 651 | |
Pamela Dragosh | 366fbc3 | 2017-02-19 20:09:09 -0500 | [diff] [blame] | 652 | - maven-target: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 653 | maven-version: '{maven-version}' |
Pamela Dragosh | 366fbc3 | 2017-02-19 20:09:09 -0500 | [diff] [blame] | 654 | goals: '{mvn-goals}' |
| 655 | settings: '{mvn-settings}' |
| 656 | settings-type: cfp |
| 657 | global-settings: 'global-settings' |
| 658 | global-settings-type: cfp |
Pamela Dragosh | accf645 | 2017-02-17 08:09:31 -0500 | [diff] [blame] | 659 | |
| 660 | - shell: '{script}' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 661 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 662 | publishers: |
| 663 | - infra-shiplogs: |
| 664 | maven-version: '{maven-version}' |
| 665 | |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 666 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 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 | 35b36e4 | 2018-08-07 16:10:25 -0700 | [diff] [blame] | 671 | # 2. run a specified shell builder |
| 672 | # |
| 673 | # Required Variables: |
| 674 | # pom: name/location of the pom.xml file relative to the workspace |
| 675 | # maven-properties: properties passed to maven |
| 676 | |
| 677 | name: '{project-name}-{stream}-{subproject}-docker-java-shell-daily' |
| 678 | project-type: freestyle |
| 679 | node: '{build-node}' |
| 680 | disabled: '{disabled}' |
| 681 | properties: |
| 682 | - infra-properties: |
| 683 | build-days-to-keep: '{build-days-to-keep}' |
| 684 | |
| 685 | parameters: |
| 686 | - infra-parameters: |
| 687 | project: '{project}' |
| 688 | branch: '{branch}' |
| 689 | refspec: 'refs/heads/{branch}' |
| 690 | artifacts: '{archive-artifacts}' |
| 691 | - maven-exec: |
| 692 | maven-version: '{maven-version}' |
| 693 | |
| 694 | scm: |
| 695 | - gerrit-trigger-scm: |
| 696 | refspec: '' |
| 697 | choosing-strategy: 'default' |
| 698 | submodule-recursive: '{submodule-recursive}' |
| 699 | |
| 700 | wrappers: |
| 701 | - infra-wrappers: |
| 702 | build-timeout: '{build-timeout}' |
| 703 | |
| 704 | triggers: |
| 705 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 706 | - timed: '@daily' |
Jessica Wagantall | 35b36e4 | 2018-08-07 16:10:25 -0700 | [diff] [blame] | 707 | - gerrit-trigger-release-manually: |
| 708 | server: '{server-name}' |
| 709 | project: '{project}' |
| 710 | branch: '{branch}' |
| 711 | |
| 712 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 713 | - lf-infra-pre-build |
Jessica Wagantall | 35b36e4 | 2018-08-07 16:10:25 -0700 | [diff] [blame] | 714 | - provide-maven-settings: |
| 715 | global-settings-file: 'global-settings' |
| 716 | settings-file: '{mvn-settings}' |
| 717 | |
| 718 | - docker-login |
| 719 | |
| 720 | - maven-target: |
| 721 | maven-version: '{maven-version}' |
| 722 | pom: '{pom}' |
| 723 | goals: '{mvn-goals}' |
| 724 | settings: '{mvn-settings}' |
| 725 | settings-type: cfp |
| 726 | global-settings: 'global-settings' |
| 727 | global-settings-type: cfp |
| 728 | |
| 729 | - shell: '{script}' |
| 730 | |
| 731 | publishers: |
| 732 | - infra-shiplogs: |
| 733 | maven-version: '{maven-version}' |
| 734 | |
| 735 | - job-template: |
| 736 | # Job template for building & pushing docker images |
| 737 | # |
| 738 | # The purpose of this job template is to run: |
| 739 | # 1. login to the docker registry |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 740 | # 2. inject a version.properties file and set versions |
| 741 | # 3. run a specified shell builder |
| 742 | # |
| 743 | # Required Variables: |
| 744 | # pom: name/location of the pom.xml file relative to the workspace |
| 745 | # maven-properties: properties passed to maven |
| 746 | |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 747 | name: '{project-name}-{stream}-docker-java-version-shell-daily' |
| 748 | project-type: freestyle |
Jessica Wagantall | d50aa19 | 2018-11-08 13:03:33 -0800 | [diff] [blame] | 749 | node: '{build-node}' |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 750 | disabled: '{disabled}' |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 751 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 752 | - infra-properties: |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 753 | build-days-to-keep: '{build-days-to-keep}' |
| 754 | |
| 755 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 756 | - infra-parameters: |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 757 | project: '{project}' |
| 758 | branch: '{branch}' |
| 759 | refspec: 'refs/heads/{branch}' |
| 760 | artifacts: '{archive-artifacts}' |
| 761 | - maven-exec: |
| 762 | maven-version: '{maven-version}' |
| 763 | |
| 764 | scm: |
| 765 | - gerrit-trigger-scm: |
| 766 | refspec: '' |
| 767 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 768 | submodule-recursive: '{submodule-recursive}' |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 769 | |
| 770 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 771 | - infra-wrappers: |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 772 | build-timeout: '{build-timeout}' |
| 773 | |
| 774 | triggers: |
| 775 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 776 | - timed: '@daily' |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 777 | - gerrit-trigger-release-manually: |
| 778 | server: '{server-name}' |
| 779 | project: '{project}' |
| 780 | branch: '{branch}' |
| 781 | |
| 782 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 783 | - lf-infra-pre-build |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 784 | - provide-maven-settings: |
| 785 | global-settings-file: 'global-settings' |
| 786 | settings-file: '{mvn-settings}' |
| 787 | |
| 788 | - inject: |
| 789 | properties-file: version.properties |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 790 | - maven-set-release-version: |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 791 | maven-version: '{maven-version}' |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 792 | mvn-settings: '{mvn-settings}' |
| 793 | pom: |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 794 | |
| 795 | - docker-login |
| 796 | |
| 797 | - maven-target: |
| 798 | maven-version: '{maven-version}' |
| 799 | goals: '{mvn-goals}' |
| 800 | settings: '{mvn-settings}' |
| 801 | settings-type: cfp |
| 802 | global-settings: 'global-settings' |
| 803 | global-settings-type: cfp |
| 804 | |
| 805 | - shell: '{script}' |
| 806 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 807 | publishers: |
| 808 | - infra-shiplogs: |
| 809 | maven-version: '{maven-version}' |
| 810 | |
Pamela Dragosh | 2814e4d | 2017-03-15 12:52:55 -0400 | [diff] [blame] | 811 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 812 | # Job template for building & pushing docker images |
| 813 | # |
| 814 | # The purpose of this job template is to run: |
| 815 | # 1. login to the docker registry |
| 816 | # 2. inject a version.properties file and set versions |
| 817 | # 3. run a specified shell builder |
| 818 | # |
| 819 | # This template supports subprojects. |
| 820 | # |
| 821 | # Required Variables: |
| 822 | # pom: name/location of the pom.xml file relative to the workspace |
| 823 | # maven-properties: properties passed to maven |
| 824 | |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 825 | name: '{project-name}-{stream}-{subproject}-docker-java-version-shell-daily' |
| 826 | project-type: freestyle |
Jessica Wagantall | 612da80 | 2020-03-31 10:44:03 -0700 | [diff] [blame] | 827 | node: 'ubuntu1804-docker-8c-8g' |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 828 | disabled: '{disabled}' |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 829 | properties: |
| 830 | - infra-properties: |
| 831 | build-days-to-keep: '{build-days-to-keep}' |
| 832 | |
| 833 | parameters: |
| 834 | - infra-parameters: |
| 835 | project: '{project}' |
| 836 | branch: '{branch}' |
| 837 | refspec: 'refs/heads/{branch}' |
| 838 | artifacts: '{archive-artifacts}' |
| 839 | - maven-exec: |
| 840 | maven-version: '{maven-version}' |
| 841 | |
| 842 | scm: |
| 843 | - gerrit-trigger-scm: |
| 844 | refspec: '' |
| 845 | choosing-strategy: 'default' |
| 846 | submodule-recursive: '{submodule-recursive}' |
| 847 | |
| 848 | wrappers: |
| 849 | - infra-wrappers: |
| 850 | build-timeout: '{build-timeout}' |
| 851 | |
| 852 | triggers: |
| 853 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 854 | - timed: '@daily' |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 855 | - gerrit-trigger-release-manually: |
| 856 | server: '{server-name}' |
| 857 | project: '{project}' |
| 858 | branch: '{branch}' |
| 859 | |
| 860 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 861 | - lf-infra-pre-build |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 862 | - provide-maven-settings: |
| 863 | global-settings-file: 'global-settings' |
| 864 | settings-file: '{mvn-settings}' |
| 865 | |
| 866 | - inject: |
| 867 | properties-file: version.properties |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 868 | - maven-set-release-version: |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 869 | maven-version: '{maven-version}' |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 870 | mvn-settings: '{mvn-settings}' |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 871 | pom: '{pom}' |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 872 | |
| 873 | - docker-login |
| 874 | |
| 875 | - maven-target: |
| 876 | maven-version: '{maven-version}' |
| 877 | pom: '{pom}' |
| 878 | goals: '{mvn-goals}' |
| 879 | settings: '{mvn-settings}' |
| 880 | settings-type: cfp |
| 881 | global-settings: 'global-settings' |
| 882 | global-settings-type: cfp |
| 883 | |
| 884 | - shell: '{script}' |
| 885 | |
| 886 | publishers: |
| 887 | - infra-shiplogs: |
| 888 | maven-version: '{maven-version}' |
| 889 | |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 890 | - job-template: &docker_version_java_defaults |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 891 | # Job template for building & pushing docker images |
| 892 | # |
| 893 | # The purpose of this job template is to run: |
| 894 | # 1. login to the docker registry |
| 895 | # 2. inject a version.properties file and set versions |
| 896 | # 3. run a docker push |
| 897 | # |
| 898 | # Required Variables: |
| 899 | # pom: name/location of the pom.xml file relative to the workspace |
| 900 | # profile: the docker profile defined in the pom |
| 901 | # maven-properties: properties passed to maven |
| 902 | |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 903 | name: '{project-name}-{stream}-docker-version-java-daily' |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 904 | id: '{project-name}-{stream}-docker-version-java-daily' |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 905 | project-type: freestyle |
Paul Vaduva | 6dd8854 | 2018-12-11 16:59:12 +0100 | [diff] [blame] | 906 | node: '{build-node}' |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 907 | disabled: '{disabled}' |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 908 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 909 | - infra-properties: |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 910 | build-days-to-keep: '{build-days-to-keep}' |
| 911 | |
| 912 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 913 | - infra-parameters: |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 914 | project: '{project}' |
| 915 | branch: '{branch}' |
| 916 | refspec: 'refs/heads/{branch}' |
| 917 | artifacts: '{archive-artifacts}' |
| 918 | - maven-exec: |
| 919 | maven-version: '{maven-version}' |
Jessica Wagantall | f8f030a | 2018-05-07 11:13:19 -0700 | [diff] [blame] | 920 | - maven-params: |
| 921 | mvn-params: '{mvn-params}' |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 922 | |
| 923 | scm: |
| 924 | - gerrit-trigger-scm: |
| 925 | refspec: '' |
| 926 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 927 | submodule-recursive: '{submodule-recursive}' |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 928 | |
| 929 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 930 | - infra-wrappers: |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 931 | build-timeout: '{build-timeout}' |
| 932 | |
| 933 | triggers: |
| 934 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 935 | - timed: '@daily' |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 936 | - gerrit-trigger-release-manually: |
| 937 | server: '{server-name}' |
| 938 | project: '{project}' |
| 939 | branch: '{branch}' |
| 940 | |
| 941 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 942 | - lf-infra-pre-build |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 943 | - provide-maven-settings: |
| 944 | global-settings-file: 'global-settings' |
| 945 | settings-file: '{mvn-settings}' |
| 946 | |
| 947 | - inject: |
| 948 | properties-file: version.properties |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 949 | - maven-set-release-version: |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 950 | maven-version: '{maven-version}' |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 951 | mvn-settings: '{mvn-settings}' |
| 952 | pom: |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 953 | |
| 954 | - docker-login |
| 955 | |
| 956 | - maven-docker-push-daily: |
| 957 | maven-version: '{maven-version}' |
| 958 | mvn-settings: '{mvn-settings}' |
| 959 | pom: '{docker-pom}' |
| 960 | # use default as mvn-profile if profile is not needed |
| 961 | mvn-profile: '{mvn-profile}' |
Jessica Wagantall | f8f030a | 2018-05-07 11:13:19 -0700 | [diff] [blame] | 962 | mvn-params: '{mvn-params}' |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 963 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 964 | publishers: |
| 965 | - infra-shiplogs: |
| 966 | maven-version: '{maven-version}' |
| 967 | |
Patrick Brady | 39f388a | 2017-03-09 11:26:59 -0800 | [diff] [blame] | 968 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 969 | # Job template for building & pushing docker images |
| 970 | # |
| 971 | # The purpose of this job template is to run: |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 972 | # 1. login to the docker registry |
| 973 | # 2. inject a version.properties file and set versions |
| 974 | # 3. run a docker push |
| 975 | # |
| 976 | # Required Variables: |
| 977 | # pom: name/location of the pom.xml file relative to the workspace |
| 978 | # profile: the docker profile defined in the pom |
| 979 | # maven-properties: properties passed to maven |
| 980 | |
Gary Wu | 350fbcb | 2018-08-07 11:13:59 -0700 | [diff] [blame] | 981 | <<: *docker_version_java_defaults |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 982 | name: '{project-name}-{stream}-docker-version-java-daily' |
| 983 | id: 'docker-version-java-daily' |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 984 | node: '{build-node}' |
Gary Wu | 9e9210f | 2018-07-18 16:19:20 -0700 | [diff] [blame] | 985 | wrappers: |
| 986 | - infra-wrappers-docker-build: |
| 987 | build-timeout: '{build-timeout}' |
| 988 | |
Zhaoxing | 4977304 | 2017-10-13 17:14:35 +0800 | [diff] [blame] | 989 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 990 | # Job template for building & pushing docker images for AAI specific repos |
| 991 | # |
| 992 | # The purpose of this job template is to run: |
| 993 | # 1. login to the docker registry |
| 994 | # 2. run maven goals |
| 995 | # 3. run include-docker-push.sh |
| 996 | # |
| 997 | # Required Variables: |
| 998 | # pom: name/location of the pom.xml file relative to the workspace |
| 999 | # maven-properties: properties passed to maven |
| 1000 | |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1001 | name: '{project-name}-{stream}-aai-docker-java-daily' |
| 1002 | project-type: freestyle |
Jessica Wagantall | ab30bf6 | 2018-11-08 12:20:48 -0800 | [diff] [blame] | 1003 | node: '{build-node}' |
Gary Wu | dc3f295 | 2017-08-23 16:48:59 -0700 | [diff] [blame] | 1004 | docker-image-name: '' |
Jessica Wagantall | 27a8a39 | 2018-03-16 17:22:11 -0700 | [diff] [blame] | 1005 | disabled: '{disabled}' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1006 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 1007 | - infra-properties: |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1008 | build-days-to-keep: '{build-days-to-keep}' |
| 1009 | |
| 1010 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 1011 | - infra-parameters: |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1012 | project: '{project}' |
| 1013 | branch: '{branch}' |
| 1014 | refspec: 'refs/heads/{branch}' |
| 1015 | artifacts: '{archive-artifacts}' |
Andrew Grimberg | dcdce33 | 2017-02-24 11:27:09 -0800 | [diff] [blame] | 1016 | - maven-exec: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 1017 | maven-version: '{maven-version}' |
Gary Wu | dc3f295 | 2017-08-23 16:48:59 -0700 | [diff] [blame] | 1018 | - docker-image-name: |
| 1019 | docker-image-name: '{docker-image-name}' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1020 | |
| 1021 | scm: |
| 1022 | - gerrit-trigger-scm: |
| 1023 | refspec: '' |
| 1024 | choosing-strategy: 'default' |
Jeremy Phelps | 11f5d41 | 2017-06-30 13:56:19 -0500 | [diff] [blame] | 1025 | submodule-recursive: '{submodule-recursive}' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1026 | |
| 1027 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 1028 | - infra-wrappers: |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1029 | build-timeout: '{build-timeout}' |
| 1030 | |
| 1031 | triggers: |
| 1032 | # 12 AM UTC |
Gary Wu | 5f4277f | 2018-09-28 10:36:23 -0700 | [diff] [blame] | 1033 | - timed: '@daily' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1034 | - gerrit-trigger-release-manually: |
| 1035 | server: '{server-name}' |
| 1036 | project: '{project}' |
| 1037 | branch: '{branch}' |
| 1038 | |
| 1039 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 1040 | - lf-infra-pre-build |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1041 | - provide-maven-settings: |
| 1042 | global-settings-file: 'global-settings' |
| 1043 | settings-file: '{mvn-settings}' |
| 1044 | |
| 1045 | - docker-login |
| 1046 | |
| 1047 | - maven-target: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 1048 | maven-version: '{maven-version}' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1049 | pom: 'pom.xml' |
Andrew Grimberg | e55b622 | 2017-05-03 16:19:28 -0400 | [diff] [blame] | 1050 | goals: 'clean install -DskipTests -B |
| 1051 | -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] | 1052 | settings: '{mvn-settings}' |
| 1053 | settings-type: cfp |
| 1054 | global-settings: 'global-settings' |
| 1055 | global-settings-type: cfp |
| 1056 | |
| 1057 | - maven-target: |
Andrew Grimberg | e246588 | 2017-02-24 12:38:05 -0800 | [diff] [blame] | 1058 | maven-version: '{maven-version}' |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1059 | pom: '{pom}' |
| 1060 | goals: '{mvn-goals}' |
| 1061 | settings: '{mvn-settings}' |
| 1062 | settings-type: cfp |
| 1063 | global-settings: 'global-settings' |
| 1064 | global-settings-type: cfp |
| 1065 | properties: |
| 1066 | - maven.test.skip=true |
Jeremy Phelps | 48028ab | 2017-03-28 15:38:24 -0500 | [diff] [blame] | 1067 | - docker.pull.registry=nexus3.onap.org:10001 |
| 1068 | - docker.push.registry=nexus3.onap.org:10003 |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1069 | |
Venkata Harish K Kajur | bf07d0a | 2017-03-26 11:58:15 +0000 | [diff] [blame] | 1070 | - shell: !include-raw-escape: include-docker-push.sh |
Carsten Lund | 2d06a69 | 2017-02-23 18:23:07 +0000 | [diff] [blame] | 1071 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 1072 | publishers: |
| 1073 | - infra-shiplogs: |
| 1074 | maven-version: '{maven-version}' |
| 1075 | |
Carsten Lund | 2d06a69 | 2017-02-23 18:23:07 +0000 | [diff] [blame] | 1076 | - job-template: |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 1077 | # Job template for Java merge jobs for SDC specific repos |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1078 | # |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 1079 | # The purpose of this job template is to run: |
| 1080 | # 1. maven clean deploy |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1081 | # |
| 1082 | # Required Variables: |
| 1083 | # branch: git branch (eg. stable/lithium or master) |
Jessica Wagantall | a0b80c6 | 2017-12-21 12:10:19 -0800 | [diff] [blame] | 1084 | |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 1085 | <<: *merge_java_defaults |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1086 | name: '{project-name}-{stream}-sdc-merge-java' |
| 1087 | |
Paul Vaduva | 3aebd31 | 2019-02-01 13:35:21 +0100 | [diff] [blame] | 1088 | node: '{build-node}' |
Jessica Wagantall | 9a89de4 | 2018-04-18 11:35:17 -0700 | [diff] [blame] | 1089 | build-timeout: 120 |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1090 | |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1091 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 1092 | - lf-infra-pre-build |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1093 | - provide-maven-settings: |
| 1094 | global-settings-file: 'global-settings' |
| 1095 | settings-file: '{mvn-settings}' |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1096 | |
| 1097 | - docker-login |
| 1098 | |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 1099 | - maven-docker-push-daily: |
ig6133 | 9fdb9d2 | 2017-04-03 17:47:19 +0300 | [diff] [blame] | 1100 | maven-version: '{maven-version}' |
ig6133 | cb3f823 | 2017-04-05 14:22:42 +0300 | [diff] [blame] | 1101 | mvn-settings: '{mvn-settings}' |
| 1102 | pom: '{docker-pom}' |
| 1103 | # use default as mvn-profile if profile is not needed |
| 1104 | mvn-profile: '{mvn-profile}' |
Gary Wu | 6c70277 | 2018-08-06 18:48:02 -0700 | [diff] [blame] | 1105 | mvn-params: '' |
Bengt Thuree | 1515daa | 2019-09-10 13:39:04 +0200 | [diff] [blame] | 1106 | |
| 1107 | - job-template: |
| 1108 | # Job template for Java merge jobs on multiple architectures |
| 1109 | # |
| 1110 | # The purpose of this job template is to: |
| 1111 | # 1. Run parallel {project-name}-{stream}-verify-java jobs for each supported architecture |
| 1112 | # 2. Build and push a docker manifest list for the images created by |
| 1113 | # the previous jobs |
| 1114 | |
| 1115 | name: '{project-name}-multiarch-{stream}-merge-java' |
| 1116 | node: '{build-node}' |
| 1117 | project-type: multijob |
| 1118 | disabled: '{obj:disabled}' |
| 1119 | pattern: '**' |
| 1120 | |
| 1121 | parameters: |
| 1122 | - lf-infra-parameters: |
| 1123 | project: '{project}' |
| 1124 | stream: '{stream}' |
| 1125 | branch: '{branch}' |
| 1126 | - string: |
| 1127 | name: DOCKER_REGISTRY |
| 1128 | default: 'none' |
| 1129 | - string: |
| 1130 | name: DOCKERHUB_REGISTRY |
| 1131 | default: 'registry-1.docker.io' |
| 1132 | |
| 1133 | properties: |
| 1134 | - throttle: |
| 1135 | max-per-node: 1 |
| 1136 | option: 'project' |
| 1137 | - build-blocker: |
| 1138 | use-build-blocker: true |
| 1139 | blocking-jobs: |
| 1140 | - '{project-name}-.*-merge-.*' |
| 1141 | blocking-level: 'NODE' |
| 1142 | |
| 1143 | scm: |
| 1144 | - gerrit-trigger-scm: |
| 1145 | refspec: '' |
| 1146 | choosing-strategy: 'default' |
| 1147 | submodule-recursive: '{submodule-recursive}' |
| 1148 | |
| 1149 | wrappers: |
| 1150 | - infra-wrappers: |
| 1151 | build-timeout: '{build-timeout}' |
| 1152 | |
| 1153 | triggers: |
| 1154 | - gerrit-trigger-patch-merged: |
| 1155 | server: '{server-name}' |
| 1156 | project: '{project}' |
| 1157 | branch: '{branch}' |
| 1158 | files: '{pattern}' |
| 1159 | |
| 1160 | builders: |
| 1161 | - multijob: |
| 1162 | name: 'build docker images' |
| 1163 | condition: ALWAYS |
| 1164 | execution-type: PARALLEL |
| 1165 | projects: |
| 1166 | - name: '{project-name}-amd64-{stream}-merge-java' |
| 1167 | kill-phase-on: FAILURE |
| 1168 | current-parameters: true |
| 1169 | - name: '{project-name}-arm64-{stream}-merge-java' |
| 1170 | kill-phase-on: NEVER |
| 1171 | current-parameters: true |
| 1172 | - multijob: |
| 1173 | name: 'publish docker manifest' |
| 1174 | condition: SUCCESSFUL |
| 1175 | execution-type: PARALLEL |
| 1176 | projects: |
| 1177 | - name: '{project-name}-docker-manifest-{stream}' |
| 1178 | current-parameters: true |
| 1179 | predefined-parameters: | |
| 1180 | PARENT_JOB_NAME=$JOB_NAME |
| 1181 | DOCKERHUB_REGISTRY=docker.io |