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