qtip: update qtip jenkins template
[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             disabled: false
17             slave-label: 'opnfv-build-ubuntu'
18         - colorado:
19             branch: 'stable/{stream}'
20             gs-pathname: '/{stream}'
21             disabled: false
22             slave-label: 'intel-pod3'
23
24 - job-template:
25
26     name: 'vswitchperf-daily-{stream}'
27
28     disabled: '{obj:disabled}'
29
30     parameters:
31         - project-parameter:
32             project: '{project}'
33         - 'intel-pod3-defaults'
34
35     scm:
36         - git-scm:
37             credentials-id: '{ssh-credentials}'
38             refspec: ''
39             branch: '{branch}'
40
41     triggers:
42         - pollscm:
43             cron: '@midnight'
44
45     builders:
46         - shell: |
47             pwd
48             cd src
49             make clobber
50             make
51             # run basic sanity test
52             make sanity
53             cd ../ci
54             scl enable python33 "source ~/vsperfenv/bin/activate ; ./build-vsperf.sh daily"
55
56 - job-template:
57     name: 'vswitchperf-verify-{stream}'
58
59     disabled: '{obj:disabled}'
60
61     project-type: freestyle
62
63     concurrent: true
64
65     properties:
66         - build-blocker:
67             use-build-blocker: true
68             blocking-jobs:
69                 - 'vswitchperf-verify-.*'
70                 - 'vswitchperf-merge-.*'
71             block-level: 'NODE'
72
73     parameters:
74         - project-parameter:
75             project: '{project}'
76         - gerrit-parameter:
77             branch: '{branch}'
78         - '{slave-label}-defaults'
79
80     scm:
81         - gerrit-trigger-scm:
82             credentials-id: '{ssh-credentials}'
83             refspec: '$GERRIT_REFSPEC'
84             choosing-strategy: 'gerrit'
85
86     triggers:
87         - gerrit:
88             server-name: 'gerrit.opnfv.org'
89             trigger-on:
90                 - patchset-created-event:
91                     exclude-drafts: 'false'
92                     exclude-trivial-rebase: 'false'
93                     exclude-no-code-change: 'false'
94                 - draft-published-event
95                 - comment-added-contains-event:
96                     comment-contains-value: 'recheck'
97                 - comment-added-contains-event:
98                     comment-contains-value: 'reverify'
99             projects:
100               - project-compare-type: 'ANT'
101                 project-pattern: '{project}'
102                 branches:
103                   - branch-compare-type: 'ANT'
104                     branch-pattern: '**/{branch}'
105                 forbidden-file-paths:
106                   - compare-type: ANT
107                     pattern: 'docs/**'
108
109     builders:
110         - shell: |
111             pwd
112             cd src
113             make clobber
114             make
115             # run basic sanity test
116             make sanity
117             cd ../ci
118             ./build-vsperf.sh verify
119
120 - job-template:
121     name: 'vswitchperf-merge-{stream}'
122
123     disabled: '{obj:disabled}'
124
125     project-type: freestyle
126
127     concurrent: true
128
129     properties:
130         - build-blocker:
131             use-build-blocker: true
132             blocking-jobs:
133                 - 'vswitchperf-verify-.*'
134                 - 'vswitchperf-merge-.*'
135             block-level: 'NODE'
136
137     parameters:
138         - project-parameter:
139             project: '{project}'
140         - gerrit-parameter:
141             branch: '{branch}'
142         - '{slave-label}-defaults'
143
144     scm:
145         - gerrit-trigger-scm:
146             credentials-id: '{ssh-credentials}'
147             refspec: ''
148             choosing-strategy: 'default'
149
150     triggers:
151         - gerrit:
152             server-name: 'gerrit.opnfv.org'
153             trigger-on:
154                 - change-merged-event
155                 - comment-added-contains-event:
156                     comment-contains-value: 'remerge'
157             projects:
158               - project-compare-type: 'ANT'
159                 project-pattern: '{project}'
160                 branches:
161                     - branch-compare-type: 'ANT'
162                       branch-pattern: '**/{branch}'
163                 forbidden-file-paths:
164                   - compare-type: ANT
165                     pattern: 'docs/**'
166
167     builders:
168         - shell: |
169             pwd
170             cd src
171             make clobber
172             make
173             cd ../ci
174             ./build-vsperf.sh merge