129c4d1cc5bd43e605581bcb9771304ae048c14a
[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     parameters:
40         - project-parameter:
41             project: '{project}'
42             branch: '{branch}'
43         - 'opnfv-build-defaults'
44
45     scm:
46         - git-scm-gerrit
47
48     triggers:
49         - gerrit:
50             server-name: 'gerrit.opnfv.org'
51             trigger-on:
52                 - patchset-created-event:
53                     exclude-drafts: 'false'
54                     exclude-trivial-rebase: 'false'
55                     exclude-no-code-change: 'false'
56                 - draft-published-event
57                 - comment-added-contains-event:
58                     comment-contains-value: 'recheck'
59                 - comment-added-contains-event:
60                     comment-contains-value: 'reverify'
61             projects:
62               - project-compare-type: 'ANT'
63                 project-pattern: '{project}'
64                 branches:
65                   - branch-compare-type: 'ANT'
66                     branch-pattern: '**/{branch}'
67
68     builders:
69         - shell: |
70             #!/bin/bash
71
72             # we do nothing here as the main stuff will be done
73             # in phase jobs
74             echo "Triggering phase jobs!"
75         - multijob:
76             name: 'unit-test'
77             condition: SUCCESSFUL
78             projects:
79                 - name: 'storperf-verify-unit-test-{stream}'
80                   current-parameters: false
81                   predefined-parameters: |
82                     GERRIT_BRANCH=$GERRIT_BRANCH
83                     GERRIT_REFSPEC=$GERRIT_REFSPEC
84                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
85                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
86                   git-revision: true
87                   node-parameters: false
88                   kill-phase-on: FAILURE
89                   abort-all-job: false
90             name: 'build-x86_64'
91             condition: SUCCESSFUL
92             projects:
93                 - name: 'storperf-verify-build-x86_64-{stream}'
94                   current-parameters: false
95                   predefined-parameters: |
96                     GERRIT_BRANCH=$GERRIT_BRANCH
97                     GERRIT_REFSPEC=$GERRIT_REFSPEC
98                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
99                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
100                     ARCH=x86_64
101                   git-revision: true
102                   node-parameters: false
103                   kill-phase-on: FAILURE
104                   abort-all-job: false
105             name: 'build-aarch64'
106             condition: SUCCESSFUL
107             projects:
108                 - name: 'storperf-verify-build-aarch64-{stream}'
109                   current-parameters: false
110                   predefined-parameters: |
111                     GERRIT_BRANCH=$GERRIT_BRANCH
112                     GERRIT_REFSPEC=$GERRIT_REFSPEC
113                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
114                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
115                     ARCH=aarch64
116                   git-revision: true
117                   node-parameters: false
118                   kill-phase-on: FAILURE
119                   abort-all-job: false
120
121 - job-template:
122     name: 'storperf-verify-{phase}-{stream}'
123
124     disabled: '{obj:disabled}'
125
126     wrappers:
127         - ssh-agent-wrapper
128         - build-timeout:
129             timeout: 30
130
131     parameters:
132         - '{slave-label}-defaults'
133
134     scm:
135         - git-scm-gerrit
136
137     builders:
138         - 'storperf-verify-{phase}-builders-macro'
139
140     publishers:
141         - 'storperf-verify-{phase}-publishers-macro'
142 #--------------------------------
143 # builder macros
144 #--------------------------------
145 - builder:
146     name: 'storperf-verify-unit-test-builders-macro'
147     builders:
148         - shell: |
149             $WORKSPACE/ci/verify.sh
150 - builder:
151     name: 'storperf-verify-build-x86_64-builders-macro'
152     builders:
153         - shell: |
154             $WORKSPACE/ci/verify-build.sh
155 - builder:
156     name: 'storperf-verify-build-aarch64-builders-macro'
157     builders:
158         - shell: |
159             $WORKSPACE/ci/verify-build.sh
160 #--------------------------------
161 # publisher macros
162 #--------------------------------
163 - publisher:
164     name: 'storperf-verify-unit-test-publishers-macro'
165     publishers:
166         - junit:
167             results: nosetests.xml
168         - cobertura:
169             report-file: "coverage.xml"
170             only-stable: "true"
171             health-auto-update: "true"
172             stability-auto-update: "true"
173             zoom-coverage-chart: "true"
174             targets:
175                 - files:
176                     healthy: 10
177                     unhealthy: 20
178                     failing: 30
179                 - method:
180                     healthy: 50
181                     unhealthy: 40
182                     failing: 30
183         - email-jenkins-admins-on-failure
184 - publisher:
185     name: 'storperf-verify-build-x86_64-publishers-macro'
186     publishers:
187         - email-jenkins-admins-on-failure
188 - publisher:
189     name: 'storperf-verify-build-aarch64-publishers-macro'
190     publishers:
191         - email-jenkins-admins-on-failure