Adding a new verification job for testapi UI.
[releng.git] / jjb / storperf / storperf-verify-jobs.yaml
1 ---
2 - project:
3     name: storperf-verify
4
5     project: 'storperf'
6
7     # -------------------------------
8     # branches
9     # -------------------------------
10     stream:
11       - master:
12           branch: '{stream}'
13           gs-pathname: ''
14           disabled: false
15           docker-tag: 'latest'
16       - fraser: &fraser
17           branch: 'stable/{stream}'
18           gs-pathname: '/{stream}'
19           disabled: false
20           docker-tag: 'stable'
21     # -------------------------------
22     # patch verification phases
23     # -------------------------------
24     phase:
25       - 'unit-test':
26           slave-label: 'opnfv-build-ubuntu'
27       - 'build-x86_64':
28           slave-label: 'opnfv-build-ubuntu'
29       - 'build-aarch64':
30           slave-label: 'opnfv-build-ubuntu-arm'
31     # -------------------------------
32     # jobs
33     # -------------------------------
34     jobs:
35       - 'storperf-verify-{stream}'
36       - 'storperf-verify-{phase}-{stream}'
37 # -------------------------------
38 # job templates
39 # -------------------------------
40 - job-template:
41     name: 'storperf-verify-{stream}'
42
43     disabled: '{obj:disabled}'
44
45     project-type: 'multijob'
46
47     parameters:
48       - project-parameter:
49           project: '{project}'
50           branch: '{branch}'
51       - 'opnfv-build-defaults'
52
53     scm:
54       - git-scm-gerrit
55
56     triggers:
57       - gerrit:
58           server-name: 'gerrit.opnfv.org'
59           trigger-on:
60             - patchset-created-event:
61                 exclude-drafts: 'false'
62                 exclude-trivial-rebase: 'false'
63                 exclude-no-code-change: 'false'
64             - draft-published-event
65             - comment-added-contains-event:
66                 comment-contains-value: 'recheck'
67             - comment-added-contains-event:
68                 comment-contains-value: 'reverify'
69           projects:
70             - project-compare-type: 'ANT'
71               project-pattern: '{project}'
72               branches:
73                 - branch-compare-type: 'ANT'
74                   branch-pattern: '**/{branch}'
75
76     builders:
77       - shell: |
78           #!/bin/bash
79
80           # we do nothing here as the main stuff will be done
81           # in phase jobs
82           echo "Triggering phase jobs!"
83       - multijob:
84           name: 'storperf-build-and-unittest'
85           execution-type: PARALLEL
86           projects:
87             - name: 'storperf-verify-unit-test-{stream}'
88               current-parameters: false
89               predefined-parameters: |
90                 GERRIT_BRANCH=$GERRIT_BRANCH
91                 GERRIT_REFSPEC=$GERRIT_REFSPEC
92                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
93                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
94               git-revision: true
95               node-parameters: false
96               kill-phase-on: FAILURE
97               abort-all-job: false
98             - name: 'storperf-verify-build-x86_64-{stream}'
99               current-parameters: false
100               predefined-parameters: |
101                 GERRIT_BRANCH=$GERRIT_BRANCH
102                 GERRIT_REFSPEC=$GERRIT_REFSPEC
103                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
104                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
105                 ARCH=x86_64
106               git-revision: true
107               node-parameters: false
108               kill-phase-on: FAILURE
109               abort-all-job: false
110             - name: 'storperf-verify-build-aarch64-{stream}'
111               current-parameters: false
112               predefined-parameters: |
113                 GERRIT_BRANCH=$GERRIT_BRANCH
114                 GERRIT_REFSPEC=$GERRIT_REFSPEC
115                 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
116                 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
117                 ARCH=aarch64
118               git-revision: true
119               node-parameters: false
120               kill-phase-on: FAILURE
121               abort-all-job: false
122
123 - job-template:
124     name: 'storperf-verify-{phase}-{stream}'
125
126     disabled: '{obj:disabled}'
127
128     wrappers:
129       - ssh-agent-wrapper
130       - build-timeout:
131           timeout: 60
132
133     parameters:
134       - project-parameter:
135           project: '{project}'
136           branch: '{branch}'
137       - '{slave-label}-defaults'
138
139     scm:
140       - git-scm-gerrit
141
142     builders:
143       - 'storperf-verify-{phase}-builders-macro'
144
145     publishers:
146       - 'storperf-verify-{phase}-publishers-macro'
147 # -------------------------------
148 # builder macros
149 # -------------------------------
150 - builder:
151     name: 'storperf-verify-unit-test-builders-macro'
152     builders:
153       - shell: |
154           $WORKSPACE/ci/verify.sh
155
156 - builder:
157     name: 'storperf-verify-build-x86_64-builders-macro'
158     builders:
159       - shell: |
160           $WORKSPACE/ci/verify-build.sh
161
162 - builder:
163     name: 'storperf-verify-build-aarch64-builders-macro'
164     builders:
165       - shell: |
166           $WORKSPACE/ci/verify-build.sh
167 # -------------------------------
168 # publisher macros
169 # -------------------------------
170 - publisher:
171     name: 'storperf-verify-unit-test-publishers-macro'
172     publishers:
173       - junit:
174           results: nosetests.xml
175       - cobertura:
176           report-file: "coverage.xml"
177           only-stable: "true"
178           health-auto-update: "true"
179           stability-auto-update: "true"
180           zoom-coverage-chart: "true"
181           targets:
182             - files:
183                 healthy: 60
184                 unhealthy: 50
185                 failing: 40
186             - method:
187                 healthy: 60
188                 unhealthy: 50
189                 failing: 40
190       - email-jenkins-admins-on-failure
191
192 - publisher:
193     name: 'storperf-verify-build-x86_64-publishers-macro'
194     publishers:
195       - email-jenkins-admins-on-failure
196
197 - publisher:
198     name: 'storperf-verify-build-aarch64-publishers-macro'
199     publishers:
200       - email-jenkins-admins-on-failure