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