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