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