3344e187ea7cea1f18d7cf4176f8bf317de04101
[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             scl enable python33 bash
48             source ~/vsperfenv/bin/activate
49             cd ../ci
50             ./build-vsperf.sh daily
51
52 - job-template:
53     name: 'vswitchperf-verify-{stream}'
54
55     project-type: freestyle
56
57     concurrent: true
58
59     properties:
60         - throttle:
61             enabled: true
62             max-total: 3
63             max-per-node: 2
64
65     parameters:
66         - project-parameter:
67             project: '{project}'
68         - gerrit-parameter:
69             branch: '{branch}'
70         - 'opnfv-build-defaults'
71
72     scm:
73         - gerrit-trigger-scm:
74             credentials-id: '{ssh-credentials}'
75             refspec: '$GERRIT_REFSPEC'
76             choosing-strategy: 'gerrit'
77
78     triggers:
79         - gerrit:
80             trigger-on:
81                 - patchset-created-event:
82                     exclude-drafts: 'false'
83                     exclude-trivial-rebase: 'false'
84                     exclude-no-code-change: 'false'
85                 - draft-published-event
86                 - comment-added-contains-event:
87                     comment-contains-value: 'recheck'
88                 - comment-added-contains-event:
89                     comment-contains-value: 'reverify'
90             projects:
91               - project-compare-type: 'ANT'
92                 project-pattern: '{project}'
93                 branches:
94                   - branch-compare-type: 'ANT'
95                     branch-pattern: '**/{branch}'
96                 forbidden-file-paths:
97                   - compare-type: ANT
98                     pattern: 'docs/**'
99
100     builders:
101         - shell: |
102             pwd
103             cd src
104             make clobber
105             make
106             # run basic sanity test
107             make sanity
108
109 - job-template:
110     name: 'vswitchperf-merge-{stream}'
111
112     project-type: freestyle
113
114     concurrent: true
115
116     properties:
117         - throttle:
118             enabled: true
119             max-total: 3
120             max-per-node: 2
121
122     parameters:
123         - project-parameter:
124             project: '{project}'
125         - gerrit-parameter:
126             branch: '{branch}'
127         - 'opnfv-build-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