blob: 3a6a480e2683bdd6be6263bcb92f24e07bb87db5 [file] [log] [blame]
Fatih Degirmencifead03e2019-09-06 12:40:09 +02001---
2#
3# ============LICENSE_START=======================================================
4# Copyright (C) 2019 Nordix Foundation.
5# ================================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18# SPDX-License-Identifier: Apache-2.0
19# ============LICENSE_END=========================================================
20
21- project:
Fatih Degirmencib4d31f02019-10-01 15:57:49 +020022 name: 'nolabs-verify-merge'
Fatih Degirmencifead03e2019-09-06 12:40:09 +020023
Fatih Degirmenci5e3368e2019-09-06 12:58:19 +020024 project: 'nolabs'
Fatih Degirmencifead03e2019-09-06 12:40:09 +020025
26 stream:
27 - 'master':
28 branch: '{stream}'
29
30 jobs:
Fatih Degirmencib4d31f02019-10-01 15:57:49 +020031 - 'nolabs-verify-{stream}':
32 slave-label: nolabs-dev
33 - 'nolabs-merge-{stream}':
Fatih Degirmenci6868b002019-10-01 16:11:02 +020034 slave-label: nolabs-dev
35 - 'nolabs-deploy-{stream}':
Fatih Degirmencib4d31f02019-10-01 15:57:49 +020036 slave-label: nolabs-prod
Fatih Degirmencifead03e2019-09-06 12:40:09 +020037
38- job-template:
39 name: 'nolabs-verify-{stream}'
40
41 concurrent: false
42
43 parameters:
44 - project-parameters:
45 project: '{project}'
46 branch: '{branch}'
47 - nordix-gerrit-parameters
48 - label:
49 name: SLAVE_LABEL
Fatih Degirmencib4d31f02019-10-01 15:57:49 +020050 default: '{slave-label}'
Fatih Degirmencifead03e2019-09-06 12:40:09 +020051 description: 'Slave label to schedule this job on.'
52
53 properties:
54 - logrotate
55 - build-blocker:
56 use-build-blocker: true
57 blocking-jobs:
58 - 'nolabs-.*'
59 block-level: 'NODE'
60 - throttle:
61 max-per-node: 1
62 max-total: 1
63 option: project
64
65 wrappers:
66 - build-timeout:
67 timeout: 10
68 - fix-workspace-permissions
69
70 scm:
71 - git-scm-gerrit:
72 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
73 branch: '{branch}'
74 refspec: $GERRIT_REFSPEC
75 wipe_workspace: true
76 clean_before: false
77
78 triggers:
79 - gerrit:
80 server-name: 'Nordix Gerrit'
81 trigger-on:
82 - patchset-created-event:
83 exclude-drafts: 'false'
84 exclude-trivial-rebase: 'false'
85 exclude-no-code-change: 'false'
86 - draft-published-event
87 - comment-added-contains-event:
88 comment-contains-value: 'recheck'
89 - comment-added-contains-event:
90 comment-contains-value: 'reverify'
91 projects:
92 - project-compare-type: 'REG_EXP'
Fatih Degirmencib4d31f02019-10-01 15:57:49 +020093 project-pattern: 'nolabs/website'
Fatih Degirmencifead03e2019-09-06 12:40:09 +020094 branches:
95 - branch-compare-type: 'ANT'
96 branch-pattern: '**/{branch}'
Fatih Degirmencib5e91262019-09-06 18:05:07 +020097 disable-strict-forbidden-file-verification: 'false'
98 forbidden-file-paths:
99 - compare-type: ANT
100 pattern: '.gitignore'
101 - compare-type: ANT
102 pattern: '.gitreview'
Fatih Degirmencifead03e2019-09-06 12:40:09 +0200103
104 builders:
Fatih Degirmencib4d31f02019-10-01 15:57:49 +0200105 - shell: |
106 #!/bin/bash
107 echo "To be implemented"
Fatih Degirmenci1fef16e2019-09-06 13:55:03 +0200108
109- job-template:
Fatih Degirmencib4d31f02019-10-01 15:57:49 +0200110 name: 'nolabs-merge-{stream}'
Fatih Degirmenci1fef16e2019-09-06 13:55:03 +0200111
112 concurrent: false
113
114 parameters:
115 - project-parameters:
116 project: '{project}'
117 branch: '{branch}'
118 - nordix-gerrit-parameters
119 - label:
120 name: SLAVE_LABEL
Fatih Degirmencib4d31f02019-10-01 15:57:49 +0200121 default: '{slave-label}'
Fatih Degirmenci1fef16e2019-09-06 13:55:03 +0200122 description: 'Slave label to schedule this job on.'
123
124 properties:
125 - logrotate
126 - build-blocker:
127 use-build-blocker: true
128 blocking-jobs:
129 - 'nolabs-.*'
130 block-level: 'NODE'
131 - throttle:
132 max-per-node: 1
133 max-total: 1
134 option: project
135
136 wrappers:
137 - build-timeout:
138 timeout: 10
139 - fix-workspace-permissions
140
141 scm:
142 - git-scm:
143 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
144 branch: '{branch}'
145 refspec: ''
146 wipe_workspace: true
147 clean_before: false
148
149 triggers:
Fatih Degirmencib5e91262019-09-06 18:05:07 +0200150 - gerrit:
151 server-name: 'Nordix Gerrit'
152 trigger-on:
153 - change-merged-event
154 - comment-added-contains-event:
155 comment-contains-value: 'remerge'
156 projects:
157 - project-compare-type: 'ANT'
Fatih Degirmencib4d31f02019-10-01 15:57:49 +0200158 project-pattern: 'nolabs/website'
Fatih Degirmencib5e91262019-09-06 18:05:07 +0200159 branches:
160 - branch-compare-type: 'ANT'
161 branch-pattern: '**/{branch}'
162 disable-strict-forbidden-file-verification: 'false'
163 forbidden-file-paths:
164 - compare-type: ANT
165 pattern: '.gitignore'
166 - compare-type: ANT
167 pattern: '.gitreview'
Fatih Degirmenci1fef16e2019-09-06 13:55:03 +0200168
169 builders:
Fatih Degirmencib4d31f02019-10-01 15:57:49 +0200170 - shell: |
171 #!/bin/bash
172 echo "To be implemented"
Fatih Degirmencifead03e2019-09-06 12:40:09 +0200173
Fatih Degirmenci6868b002019-10-01 16:11:02 +0200174- job-template:
175 name: 'nolabs-deploy-{stream}'
176
177 concurrent: false
178
179 parameters:
180 - project-parameters:
181 project: '{project}'
182 branch: '{branch}'
183 - nordix-gerrit-parameters
184 - label:
185 name: SLAVE_LABEL
186 default: '{slave-label}'
187 description: 'Slave label to schedule this job on.'
188
189 properties:
190 - logrotate
191 - build-blocker:
192 use-build-blocker: true
193 blocking-jobs:
194 - 'nolabs-.*'
195 block-level: 'NODE'
196 - throttle:
197 max-per-node: 1
198 max-total: 1
199 option: project
200
201 wrappers:
202 - build-timeout:
203 timeout: 10
204 - fix-workspace-permissions
205
206 scm:
207 - git-scm:
208 ssh-credentials-id: nordixinfra-nordix-gerrit-ssh
209 branch: '{branch}'
210 refspec: ''
211 wipe_workspace: true
212 clean_before: false
213
214 triggers:
215 - gerrit:
216 server-name: 'Nordix Gerrit'
217 trigger-on:
218 - comment-added-contains-event:
219 comment-contains-value: 'website-deploy-to-production'
220 projects:
221 - project-compare-type: 'ANT'
222 project-pattern: 'nolabs/website'
223 branches:
224 - branch-compare-type: 'ANT'
225 branch-pattern: '**/{branch}'
226 disable-strict-forbidden-file-verification: 'false'
227 forbidden-file-paths:
228 - compare-type: ANT
229 pattern: '.gitignore'
230 - compare-type: ANT
231 pattern: '.gitreview'
232
233 builders:
234 - shell: |
235 #!/bin/bash
236 echo "To be implemented"
237
Fatih Degirmencifead03e2019-09-06 12:40:09 +0200238# vim: set ts=2 sw=2 expandtab: