Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 1 | --- |
lj1412 | f75ed99 | 2017-02-17 22:21:06 +0000 | [diff] [blame] | 2 | - job-template: |
Konrad Bańka | 67a1ef1 | 2019-09-09 17:02:25 +0200 | [diff] [blame] | 3 | # |
| 4 | # job template for verifying gerrit changeset by shell script |
| 5 | # |
| 6 | # Required Variables: |
| 7 | # project-name: name of project |
| 8 | # area: area of project covered with this verification job |
| 9 | # project: name of scm repository to work on |
| 10 | # stream: name of stream used (set the same as branch if you're not sure) |
| 11 | # branch: git branch to work on |
| 12 | # script: build script to execute |
| 13 | # Optional Variables: |
| 14 | # pattern: trigger job only if modification covered file in pattern |
| 15 | # build-node: label(flavor) of jenkins slave |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 16 | name: "{project-name}-{stream}-{area}-verify-shell" |
| 17 | node: "{build-node}" |
Konrad Bańka | 67a1ef1 | 2019-09-09 17:02:25 +0200 | [diff] [blame] | 18 | type: freestyle |
Konrad Bańka | c5b8722 | 2020-04-22 14:00:37 +0200 | [diff] [blame] | 19 | concurrent: true |
Konrad Bańka | eddda0e | 2021-08-03 21:33:50 +0200 | [diff] [blame] | 20 | disable-job: false |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 21 | disabled: "{disable-job}" |
Konrad Bańka | 67a1ef1 | 2019-09-09 17:02:25 +0200 | [diff] [blame] | 22 | |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 23 | pattern: "**" |
Konrad Bańka | 67a1ef1 | 2019-09-09 17:02:25 +0200 | [diff] [blame] | 24 | |
| 25 | parameters: |
| 26 | - lf-infra-parameters: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 27 | branch: "{branch}" |
| 28 | project: "{project}" |
| 29 | stream: "{stream}" |
| 30 | lftools-version: "{lftools-version}" |
Konrad Bańka | 67a1ef1 | 2019-09-09 17:02:25 +0200 | [diff] [blame] | 31 | |
| 32 | scm: |
| 33 | - gerrit-trigger-scm: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 34 | refspec: "$GERRIT_REFSPEC" |
| 35 | submodule-recursive: "{submodule-recursive}" |
| 36 | choosing-strategy: "gerrit" |
Konrad Bańka | 67a1ef1 | 2019-09-09 17:02:25 +0200 | [diff] [blame] | 37 | |
| 38 | triggers: |
| 39 | - gerrit-trigger-patch-submitted: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 40 | server: "{server-name}" |
| 41 | project: "{project}" |
| 42 | branch: "{branch}" |
| 43 | files: "{pattern}" |
Konrad Bańka | 67a1ef1 | 2019-09-09 17:02:25 +0200 | [diff] [blame] | 44 | |
Konrad Bańka | cd7d09e | 2020-04-21 18:20:23 +0200 | [diff] [blame] | 45 | wrappers: |
| 46 | - infra-wrappers: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 47 | build-timeout: "{build-timeout}" |
Konrad Bańka | cd7d09e | 2020-04-21 18:20:23 +0200 | [diff] [blame] | 48 | |
Konrad Bańka | 67a1ef1 | 2019-09-09 17:02:25 +0200 | [diff] [blame] | 49 | builders: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 50 | - shell: "{script}" |
Konrad Bańka | 67a1ef1 | 2019-09-09 17:02:25 +0200 | [diff] [blame] | 51 | |
| 52 | publishers: |
| 53 | - lf-infra-publish |
| 54 | |
| 55 | - job-template: |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 56 | # Job template for 2 scm and script trigger |
| 57 | # |
| 58 | # Required Variables: |
| 59 | # branch: git branch |
| 60 | # build-node: what build node to run on |
| 61 | # script: build script to execute |
| 62 | # extra-project: extra gerrit project to checkout |
| 63 | # extra-refspec: refspec for the extra project |
| 64 | # extra-branch: branch to checkout for the extra project |
| 65 | # checkout-dir: directory to checkout the extra project to |
| 66 | # DO NOT SET THIS TO anything that translates to |
| 67 | # $WORKSPACE as it will destroy the initial |
| 68 | # project checkout |
| 69 | |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 70 | name: "{project-name}-{stream}-two-scm-verify-script" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 71 | |
| 72 | project-type: freestyle |
| 73 | concurrent: true |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 74 | node: "{build-node}" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 75 | |
| 76 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 77 | - infra-properties: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 78 | build-days-to-keep: "{build-days-to-keep}" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 79 | |
| 80 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 81 | - infra-parameters: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 82 | project: "{project}" |
| 83 | branch: "{branch}" |
| 84 | refspec: "refs/heads/{branch}" |
| 85 | artifacts: "{archive-artifacts}" |
Andrew Grimberg | ab9451c | 2017-02-20 14:57:07 -0800 | [diff] [blame] | 86 | - maven-exec: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 87 | maven-version: "{maven-version}" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 88 | |
| 89 | scm: |
| 90 | - gerrit-trigger-scm: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 91 | refspec: "$GERRIT_REFSPEC" |
| 92 | choosing-strategy: "gerrit" |
| 93 | submodule-recursive: "{submodule-recursive}" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 94 | - git-extra-project: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 95 | project: "{extra-project}" |
| 96 | refspec: "{extra-refspec}" |
| 97 | branch: "{extra-branch}" |
| 98 | checkout-dir: "{checkout-dir}" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 99 | |
| 100 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 101 | - infra-wrappers: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 102 | build-timeout: "{build-timeout}" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 103 | |
| 104 | triggers: |
| 105 | - gerrit-trigger-patch-submitted: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 106 | server: "{server-name}" |
| 107 | project: "{project}" |
| 108 | branch: "{branch}" |
| 109 | files: "**" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 110 | |
| 111 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 112 | - lf-infra-pre-build |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 113 | - provide-maven-settings: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 114 | global-settings-file: "global-settings" |
| 115 | settings-file: "{mvn-settings}" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 116 | # make sure maven gets installed / setup |
| 117 | - maven-target: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 118 | maven-version: "{maven-version}" |
| 119 | goals: "--version" |
| 120 | settings: "{mvn-settings}" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 121 | settings-type: cfp |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 122 | global-settings: "global-settings" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 123 | global-settings-type: cfp |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 124 | - shell: "{script}" |
Andrew Grimberg | 1ac7c2d | 2017-02-08 12:40:56 -0800 | [diff] [blame] | 125 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 126 | publishers: |
Jessica Wagantall | 2a6a380 | 2021-01-14 12:19:17 -0800 | [diff] [blame] | 127 | - lf-infra-publish |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 128 | |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 129 | - job-template: |
Christopher Lott (cl778h) | 6b6ae12 | 2017-10-25 16:51:02 -0400 | [diff] [blame] | 130 | # Job template for two scm and script trigger - for docker merge |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 131 | # |
| 132 | # Required Variables: |
| 133 | # branch: git branch |
| 134 | # build-node: what build node to run on |
| 135 | # script: build script to execute |
| 136 | |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 137 | name: "{project-name}-{stream}-two-scm-merge-docker-script" |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 138 | |
| 139 | project-type: freestyle |
| 140 | concurrent: true |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 141 | node: "{build-node}" |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 142 | |
| 143 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 144 | - infra-properties: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 145 | build-days-to-keep: "{build-days-to-keep}" |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 146 | |
| 147 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 148 | - infra-parameters: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 149 | project: "{project}" |
| 150 | branch: "{branch}" |
| 151 | refspec: "refs/heads/{branch}" |
| 152 | artifacts: "{archive-artifacts}" |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 153 | - maven-exec: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 154 | maven-version: "{maven-version}" |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 155 | |
| 156 | scm: |
| 157 | - gerrit-trigger-scm: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 158 | refspec: "" |
| 159 | choosing-strategy: "default" |
| 160 | submodule-recursive: "{submodule-recursive}" |
talasila | 596787c | 2017-02-19 20:47:56 -0500 | [diff] [blame] | 161 | - git-extra-project: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 162 | project: "{extra-project}" |
| 163 | refspec: "{extra-refspec}" |
| 164 | branch: "{extra-branch}" |
| 165 | checkout-dir: "{checkout-dir}" |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 166 | |
| 167 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 168 | - infra-wrappers: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 169 | build-timeout: "{build-timeout}" |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 170 | |
| 171 | triggers: |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 172 | - gerrit-trigger-patch-merged: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 173 | server: "{server-name}" |
| 174 | project: "{project}" |
| 175 | branch: "{branch}" |
| 176 | files: "**" |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 177 | |
| 178 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 179 | - lf-infra-pre-build |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 180 | - provide-maven-settings: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 181 | global-settings-file: "global-settings" |
| 182 | settings-file: "{mvn-settings}" |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 183 | - docker-login |
| 184 | # make sure maven gets installed / setup |
| 185 | - maven-target: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 186 | maven-version: "{maven-version}" |
| 187 | goals: "--version" |
| 188 | settings: "{mvn-settings}" |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 189 | settings-type: cfp |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 190 | global-settings: "global-settings" |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 191 | global-settings-type: cfp |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 192 | - shell: "{script}" |
talasila | 714fdfa | 2017-02-19 09:30:55 -0500 | [diff] [blame] | 193 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 194 | publishers: |
Jessica Wagantall | 2a6a380 | 2021-01-14 12:19:17 -0800 | [diff] [blame] | 195 | - lf-infra-publish |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 196 | |
| 197 | - job-template: |
Christopher Lott (cl778h) | 6b6ae12 | 2017-10-25 16:51:02 -0400 | [diff] [blame] | 198 | # Job template for two scm and script trigger - for docker daily release |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 199 | # |
| 200 | # Required Variables: |
| 201 | # branch: git branch |
| 202 | # build-node: what build node to run on |
| 203 | # script: build script to execute |
| 204 | |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 205 | name: "{project-name}-{stream}-two-scm-release-docker-script-manual" |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 206 | |
| 207 | project-type: freestyle |
| 208 | concurrent: true |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 209 | node: "{build-node}" |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 210 | |
| 211 | properties: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 212 | - infra-properties: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 213 | build-days-to-keep: "{build-days-to-keep}" |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 214 | |
| 215 | parameters: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 216 | - infra-parameters: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 217 | project: "{project}" |
| 218 | branch: "{branch}" |
| 219 | refspec: "refs/heads/{branch}" |
| 220 | artifacts: "{archive-artifacts}" |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 221 | - maven-exec: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 222 | maven-version: "{maven-version}" |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 223 | |
| 224 | scm: |
| 225 | - gerrit-trigger-scm: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 226 | refspec: "" |
| 227 | choosing-strategy: "default" |
| 228 | submodule-recursive: "{submodule-recursive}" |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 229 | - git-extra-project: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 230 | project: "{extra-project}" |
| 231 | refspec: "{extra-refspec}" |
| 232 | branch: "{extra-branch}" |
| 233 | checkout-dir: "{checkout-dir}" |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 234 | |
| 235 | wrappers: |
Andrew Grimberg | 4307a1c | 2017-03-16 13:00:00 -0700 | [diff] [blame] | 236 | - infra-wrappers: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 237 | build-timeout: "{build-timeout}" |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 238 | |
| 239 | triggers: |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 240 | - gerrit-trigger-release-manually: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 241 | server: "{server-name}" |
| 242 | project: "{project}" |
| 243 | branch: "{branch}" |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 244 | |
| 245 | builders: |
Jessica Wagantall | 05ae7da | 2018-10-22 17:32:33 -0700 | [diff] [blame] | 246 | - lf-infra-pre-build |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 247 | - provide-maven-settings: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 248 | global-settings-file: "global-settings" |
| 249 | settings-file: "{mvn-settings}" |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 250 | - docker-login |
| 251 | # make sure maven gets installed / setup |
| 252 | - maven-target: |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 253 | maven-version: "{maven-version}" |
| 254 | goals: "--version" |
| 255 | settings: "{mvn-settings}" |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 256 | settings-type: cfp |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 257 | global-settings: "global-settings" |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 258 | global-settings-type: cfp |
Andrew Grimberg | c1f3caf | 2023-05-03 09:25:07 -0700 | [diff] [blame] | 259 | - shell: "{script}" |
talasila | a20f8bf | 2017-02-22 10:49:54 -0500 | [diff] [blame] | 260 | |
Andrew Grimberg | 4ecb8f2 | 2017-04-06 13:57:46 -0700 | [diff] [blame] | 261 | publishers: |
Jessica Wagantall | 2a6a380 | 2021-01-14 12:19:17 -0800 | [diff] [blame] | 262 | - lf-infra-publish |