compass: Align scenario short names between installers
[releng.git] / jjb / compass4nfv / compass-ci-jobs.yml
1 - project:
2
3     name: compass-ci
4
5     installer: 'compass'
6
7     project: 'compass4nfv'
8
9     master: &master
10         stream: master
11         branch: '{stream}'
12         gs-pathname: ''
13     brahmaputra: &brahmaputra
14         stream: brahmaputra
15         branch: 'stable/{stream}'
16         gs-pathname: '/{stream}'
17
18 #--------------------------------
19 # POD, INSTALLER, AND BRANCH MAPPING
20 #--------------------------------
21     pod:
22 #--------------------------------
23 #        brahmaputra
24 #--------------------------------
25         - huawei-us-deploy-bare-1:
26             <<: *brahmaputra
27 #--------------------------------
28 #        master
29 #--------------------------------
30         - intel-pod8:
31             <<: *master
32
33     scenario:
34         - 'os-nosdn-nofeature-ha':
35             disabled: false
36             auto-trigger-name: 'compass-{scenario}-{pod}-trigger'
37         - 'os-odl_l2-nofeature-ha':
38             disabled: false
39             auto-trigger-name: 'compass-{scenario}-{pod}-trigger'
40         - 'os-onos-nofeature-ha':
41             disabled: false
42             auto-trigger-name: 'compass-{scenario}-{pod}-trigger'
43 #        - 'os-ocl-nofeature-ha':
44 #            disabled: true
45 #            auto-trigger-name: 'joid-{scenario}-{pod}-trigger'
46
47     jobs:
48         - 'compass-{scenario}-{pod}-daily-{stream}'
49         - 'compass-deploy-{pod}-daily-{stream}'
50
51 ########################
52 # job templates
53 ########################
54 - job-template:
55     name: 'compass-{scenario}-{pod}-daily-{stream}'
56
57     project-type: multijob
58
59     node: huawei-build
60
61     concurrent: false
62
63     properties:
64         - throttle:
65             enabled: true
66             max-total: 1
67             max-per-node: 1
68         - build-blocker:
69             use-build-blocker: true
70             blocking-jobs:
71                 - 'compass-os-.*?-{pod}-daily-{stream}'
72
73     wrappers:
74         - build-name:
75             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
76
77     parameters:
78         - project-parameter:
79             project: '{project}'
80         - compass-ci-parameter:
81             installer: '{installer}'
82             gs-pathname: '{gs-pathname}'
83         - string:
84             name: DEPLOY_SCENARIO
85             default: 'none'
86         - 'huawei-build-defaults'
87         - '{installer}-defaults'
88
89     triggers:
90         - '{auto-trigger-name}'
91
92     builders:
93         - multijob:
94             name: deploy
95             condition: SUCCESSFUL
96             projects:
97                 - name: 'compass-deploy-{pod}-daily-{stream}'
98                   current-parameters: false
99                   predefined-parameters: 'DEPLOY_SCENARIO={scenario}'
100                   kill-phase-on: FAILURE
101         - multijob:
102             name: functest
103             condition: COMPLETED
104             projects:
105                 - name: 'functest-compass-{pod}-daily-{stream}'
106                   current-parameters: false
107                   predefined-parameters: 'DEPLOY_SCENARIO={scenario}'
108                   kill-phase-on: NEVER
109         - multijob:
110             name: yardstick
111             condition: COMPLETED
112             projects:
113                 - name: 'yardstick-compass-{pod}-daily-{stream}'
114                   current-parameters: false
115                   predefined-parameters: 'DEPLOY_SCENARIO={scenario}'
116                   kill-phase-on: NEVER
117
118 - job-template:
119     name: 'compass-deploy-{pod}-daily-{stream}'
120
121     disabled: false
122
123     concurrent: false
124
125     properties:
126         - throttle:
127             enabled: true
128             max-total: 1
129             max-per-node: 1
130         - build-blocker:
131             use-build-blocker: true
132             blocking-jobs:
133                 - 'compass-deploy-{pod}-daily-{stream}'
134
135     parameters:
136         - project-parameter:
137             project: '{project}'
138         - compass-ci-parameter:
139             installer: '{installer}'
140             gs-pathname: '{gs-pathname}'
141         - '{pod}-defaults'
142         - '{installer}-defaults'
143
144     scm:
145         - git-scm:
146             credentials-id: '{ssh-credentials}'
147             refspec: ''
148             branch: '{branch}'
149
150     wrappers:
151         - build-name:
152             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
153
154
155     builders:
156         - shell:
157             !include-raw: ./compass-workspace-precleanup.sh
158         - shell:
159             !include-raw: ./compass-download-artifact.sh
160         - shell:
161             !include-raw: ./compass-deploy-bare.sh
162
163     publishers:
164         - archive:
165             artifacts: 'ansible.log'
166             allow-empty: 'true'
167             fingerprint: true
168
169 ########################
170 # parameter macros
171 ########################
172 - parameter:
173     name: compass-ci-parameter
174     parameters:
175         - string:
176             name: BUILD_DIRECTORY
177             default: $WORKSPACE/build_output
178             description: "Directory where the build artifact will be located upon the completion of the build."
179         - string:
180             name: CACHE_DIRECTORY
181             default: $HOME/opnfv/cache/$PROJECT
182             description: "Directory where the cache to be used during the build is located."
183         - string:
184             name: GS_URL
185             default: '$GS_BASE{gs-pathname}'
186             description: "URL to Google Storage."
187         - string:
188             name: PPA_REPO
189             default: "http://205.177.226.235:9999"
190         - string:
191             name: PPA_CACHE
192             default: "$WORKSPACE/work/repo/"
193         - choice:
194             name: COMPASS_OPENSTACK_VERSION
195             choices:
196                 - 'liberty'
197                 - 'juno'
198         - choice:
199             name: COMPASS_OS_VERSION
200             choices:
201                 - 'trusty'
202                 - 'centos7'
203
204 ########################
205 # trigger macros
206 ########################
207 - trigger:
208     name: 'compass-os-nosdn-nofeature-ha-huawei-us-deploy-bare-1-trigger'
209     triggers:
210         - timed: '0 16 * * * '
211 - trigger:
212     name: 'compass-os-odl_l2-nofeature-ha-huawei-us-deploy-bare-1-trigger'
213     triggers:
214         - timed: ''
215 - trigger:
216     name: 'compass-os-onos-nofeature-ha-huawei-us-deploy-bare-1-trigger'
217     triggers:
218         - timed: ''
219 - trigger:
220     name: 'compass-os-ocl-nofeature-ha-huawei-us-deploy-bare-1-trigger'
221     triggers:
222         - timed: ''
223 - trigger:
224     name: 'compass-os-nosdn-nofeature-ha-intel-pod8-trigger'
225     triggers:
226         - timed: ''
227 - trigger:
228     name: 'compass-os-odl_l2-nofeature-ha-intel-pod8-trigger'
229     triggers:
230         - timed: '0 16 * * *'
231 - trigger:
232     name: 'compass-os-onos-nofeature-ha-intel-pod8-trigger'
233     triggers:
234         - timed: ''
235 - trigger:
236     name: 'compass-os-ocl-nofeature-ha-intel-pod8-trigger'
237     triggers:
238         - timed: ''