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