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