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