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