Merge "[fuel]reschedule on ZTE POD3"
[releng.git] / jjb / xci / xci-daily-jobs.yml
1 - project:
2     name: 'bifrost-osa-daily'
3 #--------------------------------
4 # BRANCH ANCHORS
5 #--------------------------------
6     master: &master
7         stream: master
8         branch: '{stream}'
9         gs-pathname: ''
10     ocata: &ocata
11         stream: ocata
12         branch: 'stable/{stream}'
13         gs-pathname: '/{stream}'
14 #--------------------------------
15 #       scenarios
16 #--------------------------------
17     scenario:
18         # HA scenarios
19         - 'os-nosdn-nofeature-ha':
20             auto-trigger-name: 'daily-trigger-disabled'
21 #--------------------------------
22 #        XCI PODs
23 #--------------------------------
24     pod:
25         - virtual:
26             <<: *master
27 #--------------------------------
28 #        Supported Distros
29 #--------------------------------
30     distro:
31         - 'xenial':
32             disabled: false
33             slave-label: xci-xenial-virtual
34             dib-os-release: 'xenial'
35             dib-os-element: 'ubuntu-minimal'
36             dib-os-packages: 'vlan,vim,less,bridge-utils,sudo,language-pack-en,iputils-ping,rsyslog,curl,python,debootstrap,ifenslave,ifenslave-2.6,lsof,lvm2,tcpdump,nfs-kernel-server,chrony'
37             extra-dib-elements: 'openssh-server'
38         - 'centos7':
39             disabled: true
40             slave-label: xci-centos7-virtual
41             dib-os-release: '7'
42             dib-os-element: 'centos7'
43             dib-os-packages: 'vim,less,bridge-utils,iputils,rsyslog,curl'
44             extra-dib-elements: 'openssh-server'
45         - 'suse':
46             disabled: true
47             slave-label: xci-suse-virtual
48             dib-os-release: '42.2'
49             dib-os-element: 'opensuse-minimal'
50             dib-os-packages: 'vim,less,bridge-utils,iputils,rsyslog,curl'
51             extra-dib-elements: 'openssh-server'
52 #--------------------------------
53 #        Phases
54 #--------------------------------
55     phase:
56         - 'provision':
57             project: 'openstack'
58             project-repo: 'https://git.openstack.org/openstack/bifrost'
59             project-branch: '{branch}'
60             clone-location: '/opt/bifrost'
61         - 'deploy':
62             project: 'openstack'
63             project-repo: 'https://git.openstack.org/openstack/openstack-ansible'
64             project-branch: '{branch}'
65             clone-location: '/opt/openstack-ansible'
66         - 'functest':
67             project: 'opnfv'
68             project-repo: 'https://gerrit.opnfv.org/gerrit/functest'
69             project-branch: 'master'
70             clone-location: '/opt/functest'
71 #--------------------------------
72 # jobs
73 #--------------------------------
74     jobs:
75         - 'xci-{scenario}-{pod}-{distro}-daily-{stream}'
76         - 'xci-{phase}-{pod}-{distro}-daily-{stream}'
77
78 #--------------------------------
79 # job templates
80 #--------------------------------
81 - job-template:
82     name: 'xci-{scenario}-{pod}-{distro}-daily-{stream}'
83
84     disabled: '{obj:disabled}'
85
86     concurrent: false
87
88     properties:
89         - logrotate-default
90         - build-blocker:
91             use-build-blocker: true
92             blocking-jobs:
93                 - 'xci-os-.*?-{pod}-daily-.*'
94             block-level: 'NODE'
95
96     parameters:
97         - string:
98             name: DEPLOY_SCENARIO
99             default: '{scenario}'
100         - label:
101             name: SLAVE_LABEL
102             default: '{slave-label}'
103
104     triggers:
105         - '{auto-trigger-name}'
106
107     builders:
108         - description-setter:
109             description: "Built on $NODE_NAME"
110         - trigger-builds:
111             - project: 'xci-provision-{pod}-{distro}-daily-{stream}'
112               current-parameters: false
113               predefined-parameters:
114                 DEPLOY_SCENARIO={scenario}
115               same-node: true
116               block: true
117         - trigger-builds:
118             - project: 'xci-deploy-{pod}-{distro}-daily-{stream}'
119               current-parameters: false
120               predefined-parameters:
121                 DEPLOY_SCENARIO={scenario}
122               same-node: true
123               block: true
124         - trigger-builds:
125             - project: 'xci-functest-{pod}-{distro}-daily-{stream}'
126               current-parameters: false
127               predefined-parameters:
128                 DEPLOY_SCENARIO={scenario}
129               same-node: true
130               block: true
131               block-thresholds:
132                 build-step-failure-threshold: 'never'
133                 failure-threshold: 'never'
134                 unstable-threshold: 'FAILURE'
135
136     publishers:
137         - email:
138             recipients: fatih.degirmenci@ericsson.com yroblamo@redhat.com mchandras@suse.de jack.morgan@intel.com julienjut@gmail.com
139
140 - job-template:
141     name: 'xci-{phase}-{pod}-{distro}-daily-{stream}'
142
143     disabled: '{obj:disabled}'
144
145     concurrent: false
146
147     properties:
148         - logrotate-default
149         - build-blocker:
150             use-build-blocker: true
151             blocking-jobs:
152                 - 'xci-provision-.*?-{pod}-daily-.*'
153                 - 'xci-deploy-.*?-{pod}-daily-.*'
154                 - 'xci-functest-.*?-{pod}-daily-.*'
155             block-level: 'NODE'
156
157     parameters:
158         - string:
159             name: PROJECT
160             default: '{project}'
161         - string:
162             name: PROJECT_REPO
163             default: '{project-repo}'
164         - string:
165             name: DEPLOY_SCENARIO
166             default: '{scenario}'
167         - string:
168             name: CLONE_LOCATION
169             default: '{clone-location}'
170         - string:
171             name: DISTRO
172             default: '{distro}'
173         - string:
174             name: DIB_OS_RELEASE
175             default: '{dib-os-release}'
176         - string:
177             name: DIB_OS_ELEMENT
178             default: '{dib-os-element}'
179         - string:
180             name: EXTRA_DIB_ELEMENTS
181             default: '{extra-dib-elements}'
182         - string:
183             name: DIB_OS_PACKAGES
184             default: '{dib-os-packages}'
185         - string:
186             name: CLEAN_DIB_IMAGES
187             default: 'true'
188
189     scm:
190         - git:
191             url: '$PROJECT_REPO'
192             branches:
193                 - 'origin/{project-branch}'
194             wipe-workspace: true
195             timeout: 15
196
197     builders:
198         - description-setter:
199             description: "Built on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
200         - 'xci-{phase}-builder'
201 #---------------------------
202 # builder macros
203 #---------------------------
204 - builder:
205     name: xci-provision-builder
206     builders:
207         - shell:
208             !include-raw: ./xci-provision.sh
209 - builder:
210     name: xci-deploy-builder
211     builders:
212         - shell:
213             !include-raw: ./xci-deploy.sh
214 - builder:
215     name: xci-functest-builder
216     builders:
217         - shell:
218             !include-raw: ./xci-functest.sh