merge GIT_BRANCH and GERRIT_BRANCH into BRANCH
[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             disabled: false
16         - danube:
17             branch: 'stable/{stream}'
18             gs-pathname: '/{stream}'
19             disabled: true
20
21 - job-template:
22     name: 'storperf-verify-{stream}'
23
24     disabled: '{obj:disabled}'
25
26     node: opnfv-build-ubuntu
27
28     parameters:
29         - project-parameter:
30             project: '{project}'
31             branch: '{branch}'
32         - string:
33             name: GIT_BASE
34             default: https://gerrit.opnfv.org/gerrit/$PROJECT
35             description: "Used for overriding the GIT URL coming from Global Jenkins configuration in case if the stuff is done on none-LF HW."
36
37     scm:
38         - git-scm-gerrit
39
40     triggers:
41         - gerrit:
42             server-name: 'gerrit.opnfv.org'
43             trigger-on:
44                 - patchset-created-event:
45                     exclude-drafts: 'false'
46                     exclude-trivial-rebase: 'false'
47                     exclude-no-code-change: 'false'
48                 - draft-published-event
49                 - comment-added-contains-event:
50                     comment-contains-value: 'recheck'
51                 - comment-added-contains-event:
52                     comment-contains-value: 'reverify'
53             projects:
54               - project-compare-type: 'ANT'
55                 project-pattern: '{project}'
56                 branches:
57                   - branch-compare-type: 'ANT'
58                     branch-pattern: '**/{branch}'
59
60     builders:
61         - shell: |
62             $WORKSPACE/ci/verify.sh
63
64     publishers:
65         - junit:
66             results: nosetests.xml
67         - cobertura:
68             report-file: "coverage.xml"
69             only-stable: "true"
70             health-auto-update: "true"
71             stability-auto-update: "true"
72             zoom-coverage-chart: "true"
73             targets:
74                 - files:
75                     healthy: 10
76                     unhealthy: 20
77                     failing: 30
78                 - method:
79                     healthy: 50
80                     unhealthy: 40
81                     failing: 30
82
83 - job-template:
84     name: 'storperf-merge-{stream}'
85
86     node: opnfv-build-ubuntu
87
88     parameters:
89         - project-parameter:
90             project: '{project}'
91             branch: '{branch}'
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         - git-scm
99
100     triggers:
101         - gerrit:
102             server-name: 'gerrit.opnfv.org'
103             trigger-on:
104                 - change-merged-event
105                 - comment-added-contains-event:
106                     comment-contains-value: 'remerge'
107             projects:
108               - project-compare-type: 'ANT'
109                 project-pattern: '{project}'
110                 branches:
111                     - branch-compare-type: 'ANT'
112                       branch-pattern: '**/{branch}'
113
114     builders:
115         - shell: |
116             $WORKSPACE/ci/merge.sh
117
118     publishers:
119         - junit:
120             results: nosetests.xml
121         - cobertura:
122             report-file: "coverage.xml"
123             only-stable: "true"
124             health-auto-update: "true"
125             stability-auto-update: "true"
126             zoom-coverage-chart: "true"
127             targets:
128                 - files:
129                     healthy: 10
130                     unhealthy: 20
131                     failing: 30
132                 - method:
133                     healthy: 50
134                     unhealthy: 40
135                     failing: 30
136
137 - job-template:
138     name: 'storperf-daily-{stream}'
139
140     # Job template for daily builders
141     #
142     # Required Variables:
143     #     stream:    branch with - in place of / (eg. stable)
144     #     branch:    branch (eg. stable)
145     disabled: '{obj:disabled}'
146
147     parameters:
148         - project-parameter:
149             project: '{project}'
150             branch: '{branch}'
151         - 'intel-pod9-defaults'
152
153     scm:
154         - git-scm
155
156     triggers:
157         - timed: 'H H * * *'
158
159     builders:
160         - shell: |
161             $WORKSPACE/ci/daily.sh
162