Add overage and junit report for verify
[releng.git] / jjb / storperf / storperf.yml
1 - project:
2     name: storperf
3
4     project: '{name}'
5
6     jobs:
7         - 'storperf-verify-{stream}'
8         - 'storperf-merge-{stream}'
9         - 'storperf-daily-{stream}'
10
11     stream:
12         - master:
13             branch: '{stream}'
14             gs-pathname: ''
15         - brahmaputra:
16             branch: 'stable/{stream}'
17             gs-pathname: '/{stream}'
18
19 - job-template:
20     name: 'storperf-verify-{stream}'
21
22     node: opnfv-build
23
24     parameters:
25         - project-parameter:
26             project: '{project}'
27         - gerrit-parameter:
28             branch: '{branch}'
29         - string:
30             name: GIT_BASE
31             default: https://gerrit.opnfv.org/gerrit/$PROJECT
32             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
33
34     scm:
35         - gerrit-trigger-scm:
36             credentials-id: '{ssh-credentials}'
37             refspec: '$GERRIT_REFSPEC'
38             choosing-strategy: 'gerrit'
39
40     triggers:
41         - gerrit:
42             trigger-on:
43                 - patchset-created-event:
44                     exclude-drafts: 'false'
45                     exclude-trivial-rebase: 'false'
46                     exclude-no-code-change: 'false'
47                 - draft-published-event
48                 - comment-added-contains-event:
49                     comment-contains-value: 'recheck'
50                 - comment-added-contains-event:
51                     comment-contains-value: 'reverify'
52             projects:
53               - project-compare-type: 'ANT'
54                 project-pattern: '{project}'
55                 branches:
56                   - branch-compare-type: 'ANT'
57                     branch-pattern: '**/{branch}'
58
59     builders:
60         - shell: |
61             $WORKSPACE/ci/verify.sh
62
63     publishers:
64         - junit:
65             results: nosetests.xml
66         - cobertura:
67             report-file: "coverage.xml"
68             only-stable: "true"
69             health-auto-update: "true"
70             stability-auto-update: "true"
71             zoom-coverage-chart: "true"
72             targets:
73                 - files:
74                     healthy: 10
75                     unhealthy: 20
76                     failing: 30
77                 - method:
78                     healthy: 50
79                     unhealthy: 40
80                     failing: 30
81
82 - job-template:
83     name: 'storperf-merge-{stream}'
84
85     # builder-merge job to run JJB update
86     #
87     # This job's purpose is to update all the JJB
88
89     node: opnfv-build
90
91     parameters:
92         - project-parameter:
93             project: '{project}'
94         - gerrit-parameter:
95             branch: 'master'
96         - string:
97             name: GIT_BASE
98             default: https://gerrit.opnfv.org/gerrit/$PROJECT
99             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
100
101     scm:
102         - gerrit-trigger-scm:
103             credentials-id: '{ssh-credentials}'
104             refspec: ''
105             choosing-strategy: 'default'
106
107     triggers:
108         - gerrit:
109             trigger-on:
110                 - change-merged-event
111                 - comment-added-contains-event:
112                     comment-contains-value: 'remerge'
113             projects:
114               - project-compare-type: 'ANT'
115                 project-pattern: '{project}'
116                 branches:
117                     - branch-compare-type: 'ANT'
118                       branch-pattern: '**/{branch}'
119
120     builders:
121         - shell: |
122             $WORKSPACE/ci/merge.sh
123
124     publishers:
125         - junit:
126             results: nosetests.xml
127         - cobertura:
128             report-file: "coverage.xml"
129             only-stable: "true"
130             health-auto-update: "true"
131             stability-auto-update: "true"
132             zoom-coverage-chart: "true"
133             targets:
134                 - files:
135                     healthy: 10
136                     unhealthy: 20
137                     failing: 30
138                 - method:
139                     healthy: 50
140                     unhealthy: 40
141                     failing: 30
142
143 - job-template:
144     name: 'storperf-daily-{stream}'
145
146     # Job template for daily builders
147     #
148     # Required Variables:
149     #     stream:    branch with - in place of / (eg. stable)
150     #     branch:    branch (eg. stable)
151     node: opnfv-build
152
153     disabled: true
154
155     parameters:
156         - project-parameter:
157             project: '{project}'
158
159     scm:
160         - git-scm:
161             credentials-id: '{ssh-credentials}'
162             refspec: ''
163             branch: '{branch}'
164
165     triggers:
166         - timed: 'H H * * *'
167
168     builders:
169         - shell: |
170             $WORKSPACE/ci/daily.sh
171