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