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