Merge "bug fix: fix results path on Functest container"
[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 # only master branch is enabled at the moment to keep no of jobs sane
13     stream:
14         - master:
15             branch: 'master'
16             gs-pathname: ''
17 #        - brahmaputra:
18 #            branch: 'stable/brahmaputra'
19 #            gs-pathname: '/brahmaputra'
20
21 - job-template:
22
23     name: 'vswitchperf-daily-{stream}'
24
25     parameters:
26         - project-parameter:
27             project: '{project}'
28         - 'intel-pod3-defaults'
29
30     scm:
31         - git-scm:
32             credentials-id: '{ssh-credentials}'
33             refspec: ''
34             branch: '{branch}'
35
36     triggers:
37         - pollscm: '@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
63     parameters:
64         - project-parameter:
65             project: '{project}'
66         - gerrit-parameter:
67             branch: '{branch}'
68         - 'opnfv-build-defaults'
69
70     scm:
71         - gerrit-trigger-scm:
72             credentials-id: '{ssh-credentials}'
73             refspec: '$GERRIT_REFSPEC'
74             choosing-strategy: 'gerrit'
75
76     triggers:
77         - gerrit:
78             trigger-on:
79                 - patchset-created-event:
80                     exclude-drafts: 'false'
81                     exclude-trivial-rebase: 'false'
82                     exclude-no-code-change: 'false'
83                 - draft-published-event
84                 - comment-added-contains-event:
85                     comment-contains-value: 'recheck'
86                 - comment-added-contains-event:
87                     comment-contains-value: 'reverify'
88             projects:
89               - project-compare-type: 'ANT'
90                 project-pattern: '{project}'
91                 branches:
92                   - branch-compare-type: 'ANT'
93                     branch-pattern: '**/{branch}'
94                 forbidden-file-paths:
95                   - compare-type: ANT
96                     pattern: 'docs/**'
97
98     builders:
99         - shell: |
100             pwd
101             cd src
102             make clobber
103             make
104             # run basic sanity test
105             make sanity
106
107 - job-template:
108     name: 'vswitchperf-merge-{stream}'
109
110     project-type: freestyle
111
112     concurrent: true
113
114     properties:
115         - throttle:
116             enabled: true
117             max-total: 3
118             max-per-node: 2
119
120     parameters:
121         - project-parameter:
122             project: '{project}'
123         - gerrit-parameter:
124             branch: '{branch}'
125         - 'opnfv-build-defaults'
126
127     scm:
128         - gerrit-trigger-scm:
129             credentials-id: '{ssh-credentials}'
130             refspec: ''
131             choosing-strategy: 'default'
132
133     triggers:
134         - gerrit:
135             trigger-on:
136                 - change-merged-event
137                 - comment-added-contains-event:
138                     comment-contains-value: 'remerge'
139             projects:
140               - project-compare-type: 'ANT'
141                 project-pattern: '{project}'
142                 branches:
143                     - branch-compare-type: 'ANT'
144                       branch-pattern: '**/{branch}'
145                 forbidden-file-paths:
146                   - compare-type: ANT
147                     pattern: 'docs/**'
148
149     builders:
150         - shell: |
151             pwd
152             cd src
153             make clobber
154             make