fb70df751c379541bf3aac3940fce4b5cd97f3d4
[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-ubuntu
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     node: opnfv-build-ubuntu
86
87     parameters:
88         - project-parameter:
89             project: '{project}'
90         - gerrit-parameter:
91             branch: 'master'
92         - string:
93             name: GIT_BASE
94             default: https://gerrit.opnfv.org/gerrit/$PROJECT
95             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
96
97     scm:
98         - gerrit-trigger-scm:
99             credentials-id: '{ssh-credentials}'
100             refspec: ''
101             choosing-strategy: 'default'
102
103     triggers:
104         - gerrit:
105             trigger-on:
106                 - change-merged-event
107                 - comment-added-contains-event:
108                     comment-contains-value: 'remerge'
109             projects:
110               - project-compare-type: 'ANT'
111                 project-pattern: '{project}'
112                 branches:
113                     - branch-compare-type: 'ANT'
114                       branch-pattern: '**/{branch}'
115
116     builders:
117         - shell: |
118             $WORKSPACE/ci/merge.sh
119
120     publishers:
121         - junit:
122             results: nosetests.xml
123         - cobertura:
124             report-file: "coverage.xml"
125             only-stable: "true"
126             health-auto-update: "true"
127             stability-auto-update: "true"
128             zoom-coverage-chart: "true"
129             targets:
130                 - files:
131                     healthy: 10
132                     unhealthy: 20
133                     failing: 30
134                 - method:
135                     healthy: 50
136                     unhealthy: 40
137                     failing: 30
138
139 - job-template:
140     name: 'storperf-daily-{stream}'
141
142     # Job template for daily builders
143     #
144     # Required Variables:
145     #     stream:    branch with - in place of / (eg. stable)
146     #     branch:    branch (eg. stable)
147     node: opnfv-build-ubuntu
148
149     disabled: true
150
151     parameters:
152         - project-parameter:
153             project: '{project}'
154
155     scm:
156         - git-scm:
157             credentials-id: '{ssh-credentials}'
158             refspec: ''
159             branch: '{branch}'
160
161     triggers:
162         - timed: 'H H * * *'
163
164     builders:
165         - shell: |
166             $WORKSPACE/ci/daily.sh
167