Merge "do not upload Apex artifacts when daily fails"
[releng.git] / jjb / vswitchperf / vswitchperf.yml
1 - project:
2     name: vswitchperf
3     jobs:
4         - 'vswitchperf-daily-{stream}'
5         - 'vswitchperf-merge-{stream}'
6         - 'vswitchperf-verify-{stream}'
7
8     # stream:    branch with - in place of / (eg. stable-helium)
9     # branch:    branch (eg. stable/helium)
10     stream:
11         - master:
12             branch: 'master'
13
14     project: 'vswitchperf'
15     somevar: 'foo'
16
17
18 - job-template:
19     name: 'vswitchperf-daily-{stream}'
20
21     # Job template for daily builders
22     #
23     # Required Variables:
24     #     stream:    branch with - in place of / (eg. stable)
25     #     branch:    branch (eg. stable)
26
27     project-type: freestyle
28     varsetabove: '{somevar}'
29     node: opnfv-build
30
31     logrotate:
32         daysToKeep: '{build-days-to-keep}'
33         numToKeep: '{build-num-to-keep}'
34         artifactDaysToKeep: '{build-artifact-days-to-keep}'
35         artifactNumToKeep: '{build-artifact-num-to-keep}'
36
37     parameters:
38         - project-parameter:
39             project: '{project}'
40         - string:
41             name: GIT_BASE
42             default: https://gerrit.opnfv.org/gerrit/vswitchperf
43
44     scm:
45         - git-scm:
46             credentials-id: '{ssh-credentials}'
47             refspec: ''
48             branch: '{branch}'
49
50     triggers:
51         - timed: 'H H * * *'
52
53     prebuilders:
54         - test-macro
55
56     builders:
57         - shell: |
58             pwd
59             cd src
60             make clobber
61             make
62             # run basic sanity test
63             make sanity
64
65     postbuilders:
66         - test-macro
67
68 - job-template:
69     name: 'vswitchperf-verify-{stream}'
70
71     project-type: freestyle
72
73     node: opnfv-build
74
75     concurrent: true
76
77     properties:
78         - throttle:
79             enabled: true
80             max-total: 3
81             max-per-node: 2
82
83     logrotate:
84         daysToKeep: 30
85         numToKeep: 10
86         artifactDaysToKeep: -1
87         artifactNumToKeep: -1
88
89     parameters:
90         - project-parameter:
91             project: '{project}'
92         - gerrit-parameter:
93             branch: 'master'
94         - string:
95             name: GIT_BASE
96             default: https://gerrit.opnfv.org/gerrit/vswitchperf
97     scm:
98         - gerrit-trigger-scm:
99             credentials-id: '{ssh-credentials}'
100             refspec: '$GERRIT_REFSPEC'
101             choosing-strategy: 'gerrit'
102
103     triggers:
104         - gerrit:
105             trigger-on:
106                 - patchset-created-event:
107                     exclude-drafts: 'false'
108                     exclude-trivial-rebase: 'false'
109                     exclude-no-code-change: 'false'
110                 - draft-published-event
111                 - comment-added-contains-event:
112                     comment-contains-value: 'recheck'
113                 - comment-added-contains-event:
114                     comment-contains-value: 'reverify'
115             projects:
116               - project-compare-type: 'ANT'
117                 project-pattern: 'vswitchperf'
118                 branches:
119                   - branch-compare-type: 'ANT'
120                     branch-pattern: '**/master'
121                 forbidden-file-paths:
122                   - compare-type: ANT
123                     pattern: 'docs/**'
124
125     builders:
126         - shell: |
127             pwd
128             cd src
129             make clobber
130             make
131             # run basic sanity test
132             make sanity
133
134 - job-template:
135     name: 'vswitchperf-merge-{stream}'
136
137     # builder-merge job to run JJB update
138     #
139     # This job's purpose is to update all the JJB
140
141     project-type: freestyle
142
143     node: opnfv-build
144
145     concurrent: true
146
147     properties:
148         - throttle:
149             enabled: true
150             max-total: 3
151             max-per-node: 2
152
153     logrotate:
154         daysToKeep: 30
155         numToKeep: 40
156         artifactDaysToKeep: -1
157         artifactNumToKeep: 5
158
159     parameters:
160         - project-parameter:
161             project: '{project}'
162         - gerrit-parameter:
163             branch: 'master'
164         - string:
165             name: GIT_BASE
166             default: https://gerrit.opnfv.org/gerrit/vswitchperf
167
168     scm:
169         - gerrit-trigger-scm:
170             credentials-id: '{ssh-credentials}'
171             refspec: ''
172             choosing-strategy: 'default'
173
174     triggers:
175         - gerrit:
176             trigger-on:
177                 - change-merged-event
178                 - comment-added-contains-event:
179                     comment-contains-value: 'remerge'
180             projects:
181               - project-compare-type: 'ANT'
182                 project-pattern: 'vswitchperf'
183                 branches:
184                     - branch-compare-type: 'ANT'
185                       branch-pattern: '**/master'
186                 forbidden-file-paths:
187                   - compare-type: ANT
188                     pattern: 'docs/**'
189
190     builders:
191         - shell: |
192             pwd
193             cd src
194             make clobber
195             make