Restrict Gerrit Triggers to OPNFV Gerrit Server
[releng.git] / jjb / fastpathmetrics / fastpathmetrics.yml
1 ###################################################
2 # All the jobs except verify have been removed!
3 # They will only be enabled on request by projects!
4 ###################################################
5 - project:
6     name: fastpathmetrics
7
8     project: '{name}'
9
10     jobs:
11         - 'fastpathmetrics-verify-{stream}'
12         - 'fastpathmetrics-merge-{stream}'
13         - 'fastpathmetrics-daily-{stream}'
14
15     stream:
16         - master:
17             branch: '{stream}'
18             gs-pathname: ''
19             disabled: false
20         - colorado:
21             branch: 'stable/{stream}'
22             gs-pathname: '/{stream}'
23             disabled: false
24
25 - job-template:
26     name: 'fastpathmetrics-verify-{stream}'
27
28     disabled: '{obj:disabled}'
29
30     parameters:
31         - project-parameter:
32             project: '{project}'
33         - gerrit-parameter:
34             branch: '{branch}'
35         - 'opnfv-build-ubuntu-defaults'
36
37     scm:
38         - gerrit-trigger-scm:
39             credentials-id: '{ssh-credentials}'
40             refspec: '$GERRIT_REFSPEC'
41             choosing-strategy: 'gerrit'
42
43     triggers:
44         - gerrit:
45             server-name: 'gerrit.opnfv.org'
46             trigger-on:
47                 - patchset-created-event:
48                     exclude-drafts: 'false'
49                     exclude-trivial-rebase: 'false'
50                     exclude-no-code-change: 'false'
51                 - draft-published-event
52                 - comment-added-contains-event:
53                     comment-contains-value: 'recheck'
54                 - comment-added-contains-event:
55                     comment-contains-value: 'reverify'
56             projects:
57               - project-compare-type: 'ANT'
58                 project-pattern: '{project}'
59                 branches:
60                   - branch-compare-type: 'ANT'
61                     branch-pattern: '**/{branch}'
62                 forbidden-file-paths:
63                   - compare-type: ANT
64                     pattern: 'docs/**|.gitignore'
65
66     builders:
67         - shell: |
68             pwd
69             cd src
70             make clobber
71             make
72
73 - job-template:
74     name: 'fastpathmetrics-merge-{stream}'
75
76     project-type: freestyle
77
78     disabled: '{obj:disabled}'
79
80     concurrent: true
81
82     properties:
83         - throttle:
84             enabled: true
85             max-total: 3
86             max-per-node: 2
87             option: 'project'
88
89     parameters:
90         - project-parameter:
91             project: '{project}'
92         - gerrit-parameter:
93             branch: '{branch}'
94         - 'opnfv-build-ubuntu-defaults'
95
96     scm:
97         - gerrit-trigger-scm:
98             credentials-id: '{ssh-credentials}'
99             refspec: ''
100             choosing-strategy: 'default'
101
102     triggers:
103         - gerrit:
104             server-name: 'gerrit.opnfv.org'
105             trigger-on:
106                 - change-merged-event
107                 - comment-added-contains-event:
108                     comment-contains-value: 'remerge'
109             projects:
110               - project-compare-type: 'ANT'
111                 project-pattern: '{project}'
112                 branches:
113                     - branch-compare-type: 'ANT'
114                       branch-pattern: '**/{branch}'
115                 forbidden-file-paths:
116                   - compare-type: ANT
117                     pattern: 'docs/**'
118
119     builders:
120         - shell: |
121             pwd
122             cd src
123             make clobber
124             make
125
126 - job-template:
127     name: 'fastpathmetrics-daily-{stream}'
128
129     project-type: freestyle
130
131     disabled: '{obj:disabled}'
132
133     concurrent: true
134
135     properties:
136         - throttle:
137             enabled: true
138             max-total: 3
139             max-per-node: 2
140             option: 'project'
141
142     parameters:
143         - project-parameter:
144             project: '{project}'
145         - gerrit-parameter:
146             branch: '{branch}'
147         - 'opnfv-build-ubuntu-defaults'
148
149     scm:
150         - gerrit-trigger-scm:
151             credentials-id: '{ssh-credentials}'
152             refspec: ''
153             choosing-strategy: 'default'
154
155     triggers:
156          - timed: '@midnight'
157
158     builders:
159         - shell: |
160             pwd
161             cd src
162             make clobber
163             make