b6447fa14cacfa2346bc508e8f6b22851eef7b72
[releng.git] / jjb / vswitchperf / vswitchperf.yaml
1 ---
2 - project:
3
4     name: vswitchperf
5
6     project: '{name}'
7
8     jobs:
9       - 'vswitchperf-verify-{stream}'
10       - 'vswitchperf-merge-{stream}'
11       - 'vswitchperf-daily-{stream}'
12
13     stream:
14       - master:
15           branch: '{stream}'
16           gs-pathname: ''
17           disabled: false
18       - jerma: &jerma
19           branch: 'stable/{stream}'
20           gs-pathname: '/{stream}'
21           disabled: false
22       - hunter:
23           branch: 'stable/{stream}'
24           gs-pathname: '/{stream}'
25           disabled: false
26       - gambia:
27           branch: 'stable/{stream}'
28           gs-pathname: '/{stream}'
29           disabled: false
30       - fraser:
31           branch: 'stable/{stream}'
32           gs-pathname: '/{stream}'
33           disabled: false
34
35 - job-template:
36
37     name: 'vswitchperf-daily-{stream}'
38
39     disabled: '{obj:disabled}'
40
41     properties:
42       - logrotate-default
43       - build-blocker:
44           use-build-blocker: true
45           blocking-jobs:
46             - 'vswitchperf-verify-.*'
47             - 'vswitchperf-merge-.*'
48             - 'vswitchperf-daily-.*'
49           blocking-level: 'NODE'
50
51     parameters:
52       - project-parameter:
53           project: '{project}'
54           branch: '{branch}'
55       - 'intel-pod12-defaults'
56
57     scm:
58       - git-scm
59
60     triggers:
61       - pollscm:
62           cron: '@midnight'
63
64     builders:
65       - shell: |
66           pwd
67           cd src
68           make clobber
69           make MORE_MAKE_FLAGS="-j 10"
70           cd ../ci
71           scl enable rh-python34 "source ~/vsperfenv/bin/activate ; ./build-vsperf.sh daily"
72
73 - job-template:
74     name: 'vswitchperf-verify-{stream}'
75
76     disabled: '{obj:disabled}'
77
78     project-type: freestyle
79
80     concurrent: true
81
82     properties:
83       - logrotate-default
84       - build-blocker:
85           use-build-blocker: true
86           blocking-jobs:
87             - 'vswitchperf-verify-.*'
88             - 'vswitchperf-merge-.*'
89             - 'vswitchperf-daily-.*'
90           blocking-level: 'NODE'
91
92     parameters:
93       - project-parameter:
94           project: '{project}'
95           branch: '{branch}'
96       - string:
97           name: GIT_BASE
98           default: https://gerrit.opnfv.org/gerrit/$PROJECT
99           description: 'Git URL to use on this Jenkins Slave'
100       - node:
101           name: SLAVE_NAME
102           description: 'Slave name on Jenkins'
103           allowed-slaves:
104             - intel-pod12
105             - ericsson-build4
106           default-slaves:
107             - intel-pod12
108             - ericsson-build4
109
110     scm:
111       - git-scm-gerrit
112
113     triggers:
114       - gerrit:
115           server-name: 'gerrit.opnfv.org'
116           trigger-on:
117             - patchset-created-event:
118                 exclude-drafts: 'false'
119                 exclude-trivial-rebase: 'false'
120                 exclude-no-code-change: 'false'
121             - draft-published-event
122             - comment-added-contains-event:
123                 comment-contains-value: 'recheck'
124             - comment-added-contains-event:
125                 comment-contains-value: 'reverify'
126           projects:
127             - project-compare-type: 'ANT'
128               project-pattern: '{project}'
129               branches:
130                 - branch-compare-type: 'ANT'
131                   branch-pattern: '**/{branch}'
132               disable-strict-forbidden-file-verification: 'true'
133               forbidden-file-paths:
134                 - compare-type: ANT
135                   pattern: 'docs/**'
136
137     builders:
138       - shell: |
139           pwd
140           cd src
141           make clobber
142           make MORE_MAKE_FLAGS="-j 5"
143           cd ../ci
144           ./build-vsperf.sh verify
145
146 - job-template:
147     name: 'vswitchperf-merge-{stream}'
148
149     disabled: '{obj:disabled}'
150
151     project-type: freestyle
152
153     concurrent: true
154
155     properties:
156       - logrotate-default
157       - build-blocker:
158           use-build-blocker: true
159           blocking-jobs:
160             - 'vswitchperf-verify-.*'
161             - 'vswitchperf-merge-.*'
162             - 'vswitchperf-daily-.*'
163           blocking-level: 'NODE'
164
165     parameters:
166       - project-parameter:
167           project: '{project}'
168           branch: '{branch}'
169       - string:
170           name: GIT_BASE
171           default: https://gerrit.opnfv.org/gerrit/$PROJECT
172           description: 'Git URL to use on this Jenkins Slave'
173       - node:
174           name: SLAVE_NAME
175           description: 'Slave name on Jenkins'
176           allowed-slaves:
177             - intel-pod12
178             - ericsson-build4
179           default-slaves:
180             - intel-pod12
181             - ericsson-build4
182
183     scm:
184       - git-scm
185
186     triggers:
187       - gerrit:
188           server-name: 'gerrit.opnfv.org'
189           trigger-on:
190             - change-merged-event
191             - comment-added-contains-event:
192                 comment-contains-value: 'remerge'
193           projects:
194             - project-compare-type: 'ANT'
195               project-pattern: '{project}'
196               branches:
197                 - branch-compare-type: 'ANT'
198                   branch-pattern: '**/{branch}'
199               disable-strict-forbidden-file-verification: 'true'
200               forbidden-file-paths:
201                 - compare-type: ANT
202                   pattern: 'docs/**'
203
204     builders:
205       - shell: |
206           pwd
207           cd src
208           make clobber
209           make MORE_MAKE_FLAGS="-j 5"
210           cd ../ci
211           ./build-vsperf.sh merge