VPP: Make script inclusion more readable
[ci-management.git] / jjb / csit / csit-macros.yaml
1 # Copyright (c) 2020 Cisco and/or its affiliates.
2 # Licensed under the Apache License, Version 2.0 (the "License");
3 # you may not use this file except in compliance with the License.
4 # You may obtain a copy of the License at:
5 #
6 #     http://www.apache.org/licenses/LICENSE-2.0
7 #
8 # Unless required by applicable law or agreed to in writing, software
9 # distributed under the License is distributed on an "AS IS" BASIS,
10 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11 # See the License for the specific language governing permissions and
12 # limitations under the License.
13
14 ---
15 - trigger:
16     name: gerrit-trigger-csit-vpp-devicetest-full
17     triggers:
18       - gerrit:
19           server-name: 'Primary'
20           trigger-on:
21             - patchset-created-event:
22                 exclude-drafts: 'true'
23                 exclude-trivial-rebase: 'false'
24                 exclude-no-code-change: 'false'
25             - draft-published-event
26             - comment-added-contains-event:
27                 comment-contains-value: 'recheck'
28             - comment-added-contains-event:
29                 comment-contains-value: 'reverify'
30             - comment-added-contains-event:
31                 comment-contains-value: 'csit-devicetest'
32           projects:
33             - project-compare-type: 'ANT'
34               project-pattern: '{project}'
35               branches:
36                 - branch-compare-type: 'ANT'
37                   branch-pattern: '**/{branch}'
38           skip-vote:
39             successful: '{skip-vote}'
40             failed: '{skip-vote}'
41             unstable: '{skip-vote}'
42             notbuilt: '{skip-vote}'
43
44 - trigger:
45     name: gerrit-trigger-csit-vpp-devicetest-manual
46     triggers:
47       - gerrit:
48           server-name: 'Primary'
49           trigger-on:
50             - comment-added-contains-event:
51                 comment-contains-value: 'csit-devicetest'
52           projects:
53             - project-compare-type: 'ANT'
54               project-pattern: '{project}'
55               branches:
56                 - branch-compare-type: 'ANT'
57                   branch-pattern: '**/{branch}'
58           skip-vote:
59             successful: '{skip-vote}'
60             failed: '{skip-vote}'
61             unstable: '{skip-vote}'
62             notbuilt: '{skip-vote}'