Merge "[compass] wrong job name of verify smoke test"
[releng.git] / jjb / compass4nfv / compass-project-jobs.yml
1 - project:
2
3     name: compass-project
4
5     installer: 'compass'
6
7     project: 'compass4nfv'
8
9     slave-label: 'compass-virtual'
10
11     stream:
12         - master:
13             branch: '{stream}'
14             gs-pathname: ''
15         - brahmaputra:
16             branch: 'stable/{stream}'
17             gs-pathname: '/{stream}'
18
19
20     jobs:
21         - 'compass-verify-{stream}'
22         - 'compass-build-iso-{stream}'
23         - 'compass-build-ppa-{stream}'
24         - 'compass-verify-deploy-{stream}'
25
26
27 ########################
28 # job templates
29 ########################
30 - job-template:
31     name: 'compass-verify-{stream}'
32
33     disabled: false
34
35     concurrent: true
36
37     wrappers:
38         - timeout:
39             timeout: 120
40             fail: true
41
42     properties:
43         - throttle:
44             enabled: true
45             max-per-node: 1
46         - build-blocker:
47             use-build-blocker: true
48             blocking-jobs:
49                 - 'compass-verify-[^-]*'
50                 - 'compass-os-.*?-virtual-daily-.*?'
51             block-level: 'NODE'
52
53     parameters:
54         - project-parameter:
55             project: '{project}'
56         - gerrit-parameter:
57             branch: '{branch}'
58         - compass-project-parameter:
59             installer: '{installer}'
60             gs-pathname: '{gs-pathname}'
61         - '{installer}-defaults'
62         - '{slave-label}-defaults'
63         - string:
64             name: DEPLOY_SCENARIO
65             default: 'os-nosdn-nofeature-ha'
66
67     triggers:
68         - gerrit:
69             trigger-on:
70                 - patchset-created-event:
71                     exclude-drafts: 'false'
72                     exclude-trivial-rebase: 'false'
73                     exclude-no-code-change: 'false'
74                 - draft-published-event
75                 - comment-added-contains-event:
76                     comment-contains-value: 'recheck'
77                 - comment-added-contains-event:
78                     comment-contains-value: 'reverify'
79             projects:
80               - project-compare-type: 'ANT'
81                 project-pattern: '{project}'
82                 branches:
83                   - branch-compare-type: 'ANT'
84                     branch-pattern: '**/{branch}'
85                 file-paths:
86                   - compare-type: ANT
87                     pattern: '**/*'
88                 forbidden-file-paths:
89                   - compare-type: ANT
90                     pattern: 'docs/**'
91
92     builders:
93         - trigger-builds:
94             - project: 'compass-verify-deploy-{stream}'
95               current-parameters: true
96               same-node: true
97               block: true
98         - trigger-builds:
99             - project: 'functest-{slave-label}-suite-{stream}'
100               current-parameters: true
101               predefined-parameters:
102                 FUNCTEST_SUITE_NAME=vping_userdata
103               same-node: true
104               block: true
105               block-thresholds:
106                 build-step-failure-threshold: 'never'
107                 failure-threshold: 'never'
108                 unstable-threshold: 'FAILURE'
109
110 - job-template:
111     name: 'compass-verify-deploy-{stream}'
112
113     concurrent: true
114
115     properties:
116         - throttle:
117             enabled: true
118             max-per-node: 1
119         - build-blocker:
120             use-build-blocker: true
121             blocking-jobs:
122                 - 'compass-deploy-virtual-daily-.*?'
123             block-level: 'NODE'
124
125     scm:
126         - gerrit-trigger-scm:
127             credentials-id: '{ssh-credentials}'
128             refspec: '$GERRIT_REFSPEC'
129             choosing-strategy: 'gerrit'
130
131     builders:
132         - shell:
133             !include-raw-escape: ./compass-build.sh
134         - shell:
135             !include-raw-escape: ./compass-deploy.sh
136
137     publishers:
138         - archive:
139             artifacts: 'ansible.log'
140             allow-empty: 'true'
141             fingerprint: true
142
143 - job-template:
144     name: 'compass-build-iso-{stream}'
145
146     concurrent: true
147
148     properties:
149         - throttle:
150             enabled: true
151             max-total: 1
152             max-per-node: 1
153
154     parameters:
155         - project-parameter:
156             project: '{project}'
157         - compass-project-parameter:
158             installer: '{installer}'
159             gs-pathname: '{gs-pathname}'
160         - 'ericsson-build-defaults'
161         - '{installer}-defaults'
162
163     scm:
164         - git-scm:
165             credentials-id: '{ssh-credentials}'
166             refspec: ''
167             branch: '{branch}'
168
169     triggers:
170         - timed: 'H 14 * * *'
171
172     builders:
173         - shell:
174             !include-raw-escape: ./compass-build.sh
175         - shell:
176             !include-raw-escape: ./compass-upload-artifact.sh
177         - shell:
178             !include-raw-escape: ./compass-workspace-cleanup.sh
179
180 - job-template:
181     name: 'compass-build-ppa-{stream}'
182
183     description: "build ppa(using docker) in huawei lab"
184
185     node: huawei-build
186
187     concurrent: true
188
189     properties:
190         - throttle:
191             enabled: true
192             max-total: 1
193             max-per-node: 1
194
195     parameters:
196         - project-parameter:
197             project: '{project}'
198         - compass-project-parameter:
199             installer: '{installer}'
200             gs-pathname: '{gs-pathname}'
201         - '{node}-defaults'
202         - '{installer}-defaults'
203     scm:
204         - git-scm:
205             credentials-id: '{ssh-credentials}'
206             refspec: ''
207             branch: '{branch}'
208
209     builders:
210         - shell:
211             !include-raw-escape: ./compass-makeppa.sh
212
213
214
215 ########################
216 # parameter macros
217 ########################
218 - parameter:
219     name: compass-project-parameter
220     parameters:
221         - string:
222             name: BUILD_DIRECTORY
223             default: $WORKSPACE/build_output
224             description: "Directory where the build artifact will be located upon the completion of the build."
225         - string:
226             name: CACHE_DIRECTORY
227             default: "$HOME/opnfv/cache/$PROJECT{gs-pathname}"
228             description: "Directory where the cache to be used during the build is located."
229         - string:
230             name: GS_URL
231             default: '$GS_BASE{gs-pathname}'
232             description: "URL to Google Storage."
233         - string:
234             name: PPA_REPO
235             default: "http://205.177.226.237:9999{gs-pathname}"
236         - string:
237             name: PPA_CACHE
238             default: "$WORKSPACE/work/repo/"
239         - choice:
240             name: COMPASS_OPENSTACK_VERSION
241             choices:
242                 - 'liberty'
243                 - 'juno'
244         - choice:
245             name: COMPASS_OS_VERSION
246             choices:
247                 - 'trusty'
248                 - 'centos7'
249