Storperf Parallel Verify Jobs
[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: 'storperf-build-and-unittest'
79             execution-type: PARALLEL
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: 'storperf-verify-build-x86_64-{stream}'
93                   current-parameters: false
94                   predefined-parameters: |
95                     GERRIT_BRANCH=$GERRIT_BRANCH
96                     GERRIT_REFSPEC=$GERRIT_REFSPEC
97                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
98                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
99                     ARCH=x86_64
100                   git-revision: true
101                   node-parameters: false
102                   kill-phase-on: FAILURE
103                   abort-all-job: false
104                 - name: 'storperf-verify-build-aarch64-{stream}'
105                   current-parameters: false
106                   predefined-parameters: |
107                     GERRIT_BRANCH=$GERRIT_BRANCH
108                     GERRIT_REFSPEC=$GERRIT_REFSPEC
109                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
110                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
111                     ARCH=aarch64
112                   git-revision: true
113                   node-parameters: false
114                   kill-phase-on: FAILURE
115                   abort-all-job: false
116
117 - job-template:
118     name: 'storperf-verify-{phase}-{stream}'
119
120     disabled: '{obj:disabled}'
121
122     wrappers:
123         - ssh-agent-wrapper
124         - build-timeout:
125             timeout: 30
126
127     parameters:
128         - '{slave-label}-defaults'
129
130     scm:
131         - git-scm-gerrit
132
133     builders:
134         - 'storperf-verify-{phase}-builders-macro'
135
136     publishers:
137         - 'storperf-verify-{phase}-publishers-macro'
138 #--------------------------------
139 # builder macros
140 #--------------------------------
141 - builder:
142     name: 'storperf-verify-unit-test-builders-macro'
143     builders:
144         - shell: |
145             $WORKSPACE/ci/verify.sh
146 - builder:
147     name: 'storperf-verify-build-x86_64-builders-macro'
148     builders:
149         - shell: |
150             $WORKSPACE/ci/verify-build.sh
151 - builder:
152     name: 'storperf-verify-build-aarch64-builders-macro'
153     builders:
154         - shell: |
155             $WORKSPACE/ci/verify-build.sh
156 #--------------------------------
157 # publisher macros
158 #--------------------------------
159 - publisher:
160     name: 'storperf-verify-unit-test-publishers-macro'
161     publishers:
162         - junit:
163             results: nosetests.xml
164         - cobertura:
165             report-file: "coverage.xml"
166             only-stable: "true"
167             health-auto-update: "true"
168             stability-auto-update: "true"
169             zoom-coverage-chart: "true"
170             targets:
171                 - files:
172                     healthy: 10
173                     unhealthy: 20
174                     failing: 30
175                 - method:
176                     healthy: 50
177                     unhealthy: 40
178                     failing: 30
179         - email-jenkins-admins-on-failure
180 - publisher:
181     name: 'storperf-verify-build-x86_64-publishers-macro'
182     publishers:
183         - email-jenkins-admins-on-failure
184 - publisher:
185     name: 'storperf-verify-build-aarch64-publishers-macro'
186     publishers:
187         - email-jenkins-admins-on-failure