Add missing project-parameters to storperf verify
[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         - project-parameter:
129             project: '{project}'
130             branch: '{branch}'
131         - '{slave-label}-defaults'
132
133     scm:
134         - git-scm-gerrit
135
136     builders:
137         - 'storperf-verify-{phase}-builders-macro'
138
139     publishers:
140         - 'storperf-verify-{phase}-publishers-macro'
141 #--------------------------------
142 # builder macros
143 #--------------------------------
144 - builder:
145     name: 'storperf-verify-unit-test-builders-macro'
146     builders:
147         - shell: |
148             $WORKSPACE/ci/verify.sh
149 - builder:
150     name: 'storperf-verify-build-x86_64-builders-macro'
151     builders:
152         - shell: |
153             $WORKSPACE/ci/verify-build.sh
154 - builder:
155     name: 'storperf-verify-build-aarch64-builders-macro'
156     builders:
157         - shell: |
158             $WORKSPACE/ci/verify-build.sh
159 #--------------------------------
160 # publisher macros
161 #--------------------------------
162 - publisher:
163     name: 'storperf-verify-unit-test-publishers-macro'
164     publishers:
165         - junit:
166             results: nosetests.xml
167         - cobertura:
168             report-file: "coverage.xml"
169             only-stable: "true"
170             health-auto-update: "true"
171             stability-auto-update: "true"
172             zoom-coverage-chart: "true"
173             targets:
174                 - files:
175                     healthy: 10
176                     unhealthy: 20
177                     failing: 30
178                 - method:
179                     healthy: 50
180                     unhealthy: 40
181                     failing: 30
182         - email-jenkins-admins-on-failure
183 - publisher:
184     name: 'storperf-verify-build-x86_64-publishers-macro'
185     publishers:
186         - email-jenkins-admins-on-failure
187 - publisher:
188     name: 'storperf-verify-build-aarch64-publishers-macro'
189     publishers:
190         - email-jenkins-admins-on-failure