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