Merge "Propose Serena Feng as new committer to Releng"
[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     colorado: &colorado
24         stream: colorado
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             <<: *colorado
58         - virtual:
59             slave-label: fuel-virtual
60             SUT: fuel
61             auto-trigger-name: 'daily-trigger-disabled'
62             <<: *colorado
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             <<: *colorado
79         - virtual:
80             slave-label: compass-virtual
81             SUT: compass
82             auto-trigger-name: 'daily-trigger-disabled'
83             <<: *colorado
84 #--------------------------------
85 #        None-CI PODs
86 #--------------------------------
87         - huawei-pod5:
88             slave-label: '{pod}'
89             SUT: compass
90             auto-trigger-name: 'daily-trigger-disabled'
91             <<: *master
92 #--------------------------------
93     testsuite:
94         - 'basic'
95
96     jobs:
97         - 'dovetail-{SUT}-{pod}-{testsuite}-{stream}'
98
99 ################################
100 # job templates
101 ################################
102 - job-template:
103     name: 'dovetail-{SUT}-{pod}-{testsuite}-{stream}'
104
105     disabled: false
106
107     concurrent: true
108
109     properties:
110         - throttle:
111             enabled: true
112             max-per-node: 1
113             option: 'project'
114
115     wrappers:
116         - build-name:
117             name: '$BUILD_NUMBER - Scenario: $DEPLOY_SCENARIO'
118         - timeout:
119             timeout: 180
120             abort: true
121
122     triggers:
123         - '{auto-trigger-name}'
124
125     parameters:
126         - project-parameter:
127             project: '{project}'
128         - '{SUT}-defaults'
129         - '{slave-label}-defaults'
130         - string:
131             name: DEPLOY_SCENARIO
132             default: 'os-nosdn-nofeature-ha'
133         - string:
134             name: DOCKER_TAG
135             default: '{docker-tag}'
136             description: 'Tag to pull dovetail docker image'
137         - string:
138             name: CI_DEBUG
139             default: 'true'
140             description: "Show debug output information"
141
142     scm:
143         - git-scm:
144             credentials-id: '{ssh-credentials}'
145             refspec: ''
146             branch: '{dovetail-branch}'
147
148     builders:
149         - description-setter:
150             description: "POD: $NODE_NAME"
151         - 'dovetail-cleanup'
152         - 'dovetail-{testsuite}'
153
154     publishers:
155         - archive:
156             artifacts: 'results/**/*'
157             allow-empty: true
158             fingerprint: true
159
160 ########################
161 # builder macros
162 ########################
163 - builder:
164     name: dovetail-basic
165     builders:
166         - shell:
167             !include-raw: ./dovetail-run.sh
168
169 - builder:
170     name: dovetail-fetch-os-creds
171     builders:
172         - shell:
173             !include-raw: ../../utils/fetch_os_creds.sh
174
175 - builder:
176     name: dovetail-cleanup
177     builders:
178         - shell:
179             !include-raw: ./dovetail-cleanup.sh