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