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