[compass] workaround: undo concurrent of verify job
[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     stream:
10         - master:
11             branch: '{stream}'
12             gs-pathname: ''
13         - brahmaputra:
14             branch: 'stable/{stream}'
15             gs-pathname: '/{stream}'
16
17
18     jobs:
19         - 'compass-verify-{stream}'
20         - 'compass-build-iso-{stream}'
21         - 'compass-build-ppa-{stream}'
22
23
24 ########################
25 # job templates
26 ########################
27 - job-template:
28     name: 'compass-verify-{stream}'
29
30     disabled: false
31
32     node: 'huawei-deploy-vm'
33
34     concurrent: true
35
36     wrappers:
37         - timeout:
38             timeout: 120
39             fail: true
40
41     properties:
42         - throttle:
43             enabled: true
44             max-total: 1
45             max-per-node: 1
46
47     parameters:
48         - project-parameter:
49             project: '{project}'
50         - gerrit-parameter:
51             branch: '{branch}'
52         - compass-project-parameter:
53             installer: '{installer}'
54             gs-pathname: '{gs-pathname}'
55         - '{node}-defaults'
56         - '{installer}-defaults'
57         - string:
58             name: DEPLOY_SCENARIO
59             default: 'os-nosdn-nofeature-ha'
60
61     scm:
62         - gerrit-trigger-scm:
63             credentials-id: '{ssh-credentials}'
64             refspec: '$GERRIT_REFSPEC'
65             choosing-strategy: 'gerrit'
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                 forbidden-file-paths:
86                   - compare-type: ANT
87                     pattern: 'docs/**|.gitignore'
88
89     builders:
90         - shell:
91             !include-raw: ./compass-build.sh
92         - shell:
93             !include-raw: ./compass-deploy.sh
94
95     publishers:
96         - archive:
97             artifacts: 'ansible.log'
98             allow-empty: 'true'
99             fingerprint: true
100
101 - job-template:
102     name: 'compass-build-iso-{stream}'
103
104     node: ericsson-build
105
106     concurrent: true
107
108     properties:
109         - throttle:
110             enabled: true
111             max-total: 1
112             max-per-node: 1
113
114     parameters:
115         - project-parameter:
116             project: '{project}'
117         - compass-project-parameter:
118             installer: '{installer}'
119             gs-pathname: '{gs-pathname}'
120         - '{node}-defaults'
121         - '{installer}-defaults'
122
123     scm:
124         - git-scm:
125             credentials-id: '{ssh-credentials}'
126             refspec: ''
127             branch: '{branch}'
128
129     triggers:
130         - timed: 'H 14 * * *'
131
132     builders:
133         - shell:
134             !include-raw: ./compass-build.sh
135         - shell:
136             !include-raw: ./compass-upload-artifact.sh
137         - shell:
138             !include-raw: ./compass-workspace-cleanup.sh
139
140 - job-template:
141     name: 'compass-build-ppa-{stream}'
142
143     description: "build ppa(using docker) in huawei lab"
144
145     node: huawei-build
146
147     concurrent: true
148
149     properties:
150         - throttle:
151             enabled: true
152             max-total: 1
153             max-per-node: 1
154
155     parameters:
156         - project-parameter:
157             project: '{project}'
158         - compass-project-parameter:
159             installer: '{installer}'
160             gs-pathname: '{gs-pathname}'
161         - '{node}-defaults'
162         - '{installer}-defaults'
163     scm:
164         - git-scm:
165             credentials-id: '{ssh-credentials}'
166             refspec: ''
167             branch: '{branch}'
168
169     builders:
170         - shell:
171             !include-raw: ./compass-makeppa.sh
172
173
174
175 ########################
176 # parameter macros
177 ########################
178 - parameter:
179     name: compass-project-parameter
180     parameters:
181         - string:
182             name: BUILD_DIRECTORY
183             default: $WORKSPACE/build_output
184             description: "Directory where the build artifact will be located upon the completion of the build."
185         - string:
186             name: CACHE_DIRECTORY
187             default: "$HOME/opnfv/cache/$PROJECT{gs-pathname}"
188             description: "Directory where the cache to be used during the build is located."
189         - string:
190             name: GS_URL
191             default: '$GS_BASE{gs-pathname}'
192             description: "URL to Google Storage."
193         - string:
194             name: PPA_REPO
195             default: "http://205.177.226.237:9999{gs-pathname}"
196         - string:
197             name: PPA_CACHE
198             default: "$WORKSPACE/work/repo/"
199         - choice:
200             name: COMPASS_OPENSTACK_VERSION
201             choices:
202                 - 'liberty'
203                 - 'juno'
204         - choice:
205             name: COMPASS_OS_VERSION
206             choices:
207                 - 'trusty'
208                 - 'centos7'
209