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