2361714746ab3835c602d8ea5040e72eef56d07d
[releng.git] / jjb / dovetail / dovetail-ci-jobs.yml
1 ###################################
2 # job configuration for dovetail
3 ###################################
4 - project:
5     name: dovetail
6
7     project: '{name}'
8
9 #---------------------------------------
10 # BRANCH ANCHORS
11 #---------------------------------------
12 # 1)the stream/branch here represents the SUT(System Under Test) stream/branch
13 # 2)docker-tag is the docker tag of dovetail(only master by now, then all latest used)
14 #   the dovetail stream is one-to-one mapping with dovetail docker-tag
15 #   the dovetail is not sync with A/B/C release
16 #
17     master: &master
18         stream: master
19         branch: '{stream}'
20         dovetail-branch: '{stream}'
21         gs-pathname: ''
22         docker-tag: 'latest'
23     danube: &danube
24         stream: danube
25         branch: 'stable/{stream}'
26         dovetail-branch: master
27         gs-pathname: '/{stream}'
28         docker-tag: 'latest'
29
30 #-----------------------------------
31 # POD, PLATFORM, AND BRANCH MAPPING
32 #-----------------------------------
33 #            CI PODs
34 # This section should only contain the SUTs
35 # that have been switched using labels for slaves
36 #------------------------------------------------
37 # the pods, SUTs listed here are just examples to
38 # let the dovetail tool run, there can be more ways beside CI to
39 # run the dovetail tool.
40 # pods, SUTs will be added/adjusted when needed
41     pod:
42 # fuel CI PODs
43         - baremetal:
44             slave-label: fuel-baremetal
45             SUT: fuel
46             auto-trigger-name: 'daily-trigger-disabled'
47             <<: *master
48         - virtual:
49             slave-label: fuel-virtual
50             SUT: fuel
51             auto-trigger-name: 'daily-trigger-disabled'
52             <<: *master
53         - baremetal:
54             slave-label: fuel-baremetal
55             SUT: fuel
56             auto-trigger-name: 'daily-trigger-disabled'
57             <<: *danube
58         - virtual:
59             slave-label: fuel-virtual
60             SUT: fuel
61             auto-trigger-name: 'daily-trigger-disabled'
62             <<: *danube
63 #compass CI PODs
64         - baremetal:
65             slave-label: compass-baremetal
66             SUT: compass
67             auto-trigger-name: 'daily-trigger-disabled'
68             <<: *master
69         - virtual:
70             slave-label: compass-virtual
71             SUT: compass
72             auto-trigger-name: 'daily-trigger-disabled'
73             <<: *master
74         - baremetal:
75             slave-label: compass-baremetal
76             SUT: compass
77             auto-trigger-name: 'daily-trigger-disabled'
78             <<: *danube
79         - virtual:
80             slave-label: compass-virtual
81             SUT: compass
82             auto-trigger-name: 'daily-trigger-disabled'
83             <<: *danube
84 #--------------------------------
85 #    Installers not using labels
86 #            CI PODs
87 # This section should only contain the installers
88 # that have not been switched using labels for slaves
89 #--------------------------------
90 #apex PODs
91         - lf-pod1:
92             slave-label: '{pod}'
93             SUT: apex
94             auto-trigger-name: 'daily-trigger-disabled'
95             <<: *master
96         - lf-pod1:
97             slave-label: '{pod}'
98             SUT: apex
99             auto-trigger-name: 'daily-trigger-disabled'
100             <<: *danube
101 #armband CI PODs
102         - armband-baremetal:
103             slave-label: armband-baremetal
104             SUT: fuel
105             auto-trigger-name: 'daily-trigger-disabled'
106             <<: *master
107         - armband-virtual:
108             slave-label: armband-virtual
109             SUT: fuel
110             auto-trigger-name: 'daily-trigger-disabled'
111             <<: *master
112         - armband-baremetal:
113             slave-label: armband-baremetal
114             SUT: fuel
115             auto-trigger-name: 'daily-trigger-disabled'
116             <<: *danube
117         - armband-virtual:
118             slave-label: armband-virtual
119             SUT: fuel
120             auto-trigger-name: 'daily-trigger-disabled'
121             <<: *danube
122 #--------------------------------
123 #        None-CI PODs
124 #--------------------------------
125         - baremetal-centos:
126             slave-label: 'intel-pod8'
127             SUT: compass
128             auto-trigger-name: 'daily-trigger-disabled'
129             <<: *master
130         - arm-pod2:
131             slave-label: '{pod}'
132             SUT: fuel
133             auto-trigger-name: 'daily-trigger-disabled'
134             <<: *master
135         - arm-pod3:
136             slave-label: '{pod}'
137             SUT: fuel
138             auto-trigger-name: 'daily-trigger-disabled'
139             <<: *master
140 #--------------------------------
141     testsuite:
142         - 'debug'
143         - 'compliance_set'
144         - 'proposed_tests'
145
146     jobs:
147         - 'dovetail-{SUT}-{pod}-{testsuite}-{stream}'
148
149 ################################
150 # job templates
151 ################################
152 - job-template:
153     name: 'dovetail-{SUT}-{pod}-{testsuite}-{stream}'
154
155     disabled: false
156
157     concurrent: true
158
159     properties:
160         - logrotate-default
161         - throttle:
162             enabled: true
163             max-per-node: 1
164             option: 'project'
165
166     wrappers:
167         - build-name:
168             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
169         - timeout:
170             timeout: 180
171             abort: true
172         - fix-workspace-permissions
173
174     triggers:
175         - '{auto-trigger-name}'
176
177     parameters:
178         - project-parameter:
179             project: '{project}'
180             branch: '{dovetail-branch}'
181         - '{SUT}-defaults'
182         - '{slave-label}-defaults'
183         - string:
184             name: DEPLOY_SCENARIO
185             default: 'os-nosdn-nofeature-ha'
186         - string:
187             name: DOCKER_TAG
188             default: '{docker-tag}'
189             description: 'Tag to pull dovetail docker image'
190         - string:
191             name: CI_DEBUG
192             default: 'true'
193             description: "Show debug output information"
194         - string:
195             name: TESTSUITE
196             default: '{testsuite}'
197             description: "dovetail testsuite to run"
198         - string:
199             name: DOVETAIL_REPO_DIR
200             default: "/home/opnfv/dovetail"
201             description: "Directory where the dovetail repository is cloned"
202
203     scm:
204         - git-scm
205
206     builders:
207         - description-setter:
208             description: "POD: $NODE_NAME"
209         - 'dovetail-cleanup'
210         - 'dovetail-run'
211
212     publishers:
213         - archive:
214             artifacts: 'results/**/*'
215             allow-empty: true
216             fingerprint: true
217
218 #--------------------------
219 # builder macros
220 #--------------------------
221 - builder:
222     name: dovetail-run
223     builders:
224         - shell:
225             !include-raw: ./dovetail-run.sh
226
227 - builder:
228     name: dovetail-cleanup
229     builders:
230         - shell:
231             !include-raw: ./dovetail-cleanup.sh