Merge "armband: Re-enable baremetal scenario triggers"
[releng.git] / jjb / xci / xci-daily-jobs.yml
1 #--------------------------------
2 # These jobs run on a daily basis and deploy OpenStack
3 # using the pinned versions of opnfv/releng, openstack/bifrost
4 # and openstack/openstack-ansible. Due to this, there is no
5 # version/branch is set/passed to jobs and instead the versions
6 # are checked out based on what is configured.
7 #--------------------------------
8 - project:
9     project: 'releng-xci'
10
11     name: 'xci-daily'
12 #--------------------------------
13 # Branch Anchors
14 #--------------------------------
15     master: &master
16         stream: master
17         opnfv-releng-version: master
18         gs-pathname: ''
19 #--------------------------------
20 # Scenarios
21 #--------------------------------
22     scenario:
23         - 'os-nosdn-nofeature-ha':
24             auto-trigger-name: 'daily-trigger-disabled'
25             xci-flavor: 'ha'
26         - 'os-nosdn-nofeature-noha':
27             auto-trigger-name: 'daily-trigger-disabled'
28             xci-flavor: 'noha'
29         - 'os-odl-sfc-ha':
30             auto-trigger-name: 'daily-trigger-disabled'
31             xci-flavor: 'ha'
32         - 'os-odl-sfc-noha':
33             auto-trigger-name: 'daily-trigger-disabled'
34             xci-flavor: 'noha'
35 #--------------------------------
36 # XCI PODs
37 #--------------------------------
38     pod:
39         - virtual:
40             <<: *master
41 #--------------------------------
42 # Supported Distros
43 #--------------------------------
44     distro:
45         - 'xenial':
46             disabled: false
47             slave-label: xci-xenial-virtual
48             dib-os-release: 'xenial'
49             dib-os-element: 'ubuntu-minimal'
50             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,iptabls'
51             extra-dib-elements: 'openssh-server'
52         - 'centos7':
53             disabled: true
54             slave-label: xci-centos7-virtual
55             dib-os-release: '7'
56             dib-os-element: 'centos7'
57             dib-os-packages: 'vim,less,bridge-utils,iputils,rsyslog,curl'
58             extra-dib-elements: 'openssh-server'
59         - 'suse':
60             disabled: true
61             slave-label: xci-suse-virtual
62             dib-os-release: '42.3'
63             dib-os-element: 'opensuse-minimal'
64             dib-os-packages: 'vim,less,bridge-utils,iputils,rsyslog,curl'
65             extra-dib-elements: 'openssh-server'
66
67 #--------------------------------
68 #        Phases
69 #--------------------------------
70     phase:
71         - 'deploy'
72         - '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         - build-blocker:
92             use-build-blocker: true
93             blocking-jobs:
94                 - '^xci-os.*'
95                 - '^xci-deploy.*'
96                 - '^xci-functest.*'
97                 - '^bifrost-.*periodic.*'
98                 - '^osa-.*periodic.*'
99             block-level: 'NODE'
100         - logrotate-default
101
102     parameters:
103         - string:
104             name: DEPLOY_SCENARIO
105             default: '{scenario}'
106         - string:
107             name: XCI_FLAVOR
108             default: '{xci-flavor}'
109         - label:
110             name: SLAVE_LABEL
111             default: '{slave-label}'
112         - string:
113             name: XCI_LOOP
114             default: 'daily'
115
116     triggers:
117         - '{auto-trigger-name}'
118
119     wrappers:
120         - fix-workspace-permissions
121
122     builders:
123         - description-setter:
124             description: "Built on $NODE_NAME"
125         - trigger-builds:
126             - project: 'xci-deploy-{pod}-{distro}-daily-{stream}'
127               current-parameters: false
128               predefined-parameters: |
129                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
130                 XCI_FLAVOR=$XCI_FLAVOR
131                 XCI_LOOP=$XCI_LOOP
132               same-node: true
133               block: true
134         - trigger-builds:
135             - project: 'xci-functest-{pod}-{distro}-daily-{stream}'
136               current-parameters: false
137               predefined-parameters: |
138                 DEPLOY_SCENARIO=$DEPLOY_SCENARIO
139                 XCI_FLAVOR=$XCI_FLAVOR
140                 XCI_LOOP=$XCI_LOOP
141               same-node: true
142               block: true
143               block-thresholds:
144                 build-step-failure-threshold: 'never'
145                 failure-threshold: 'never'
146                 unstable-threshold: 'FAILURE'
147
148     publishers:
149         - email:
150             recipients: fatih.degirmenci@ericsson.com yroblamo@redhat.com mchandras@suse.de jack.morgan@intel.com julienjut@gmail.com
151         - email-jenkins-admins-on-failure
152
153 - job-template:
154     name: 'xci-{phase}-{pod}-{distro}-daily-{stream}'
155
156     disabled: '{obj:disabled}'
157
158     concurrent: false
159
160     properties:
161         - build-blocker:
162             use-build-blocker: true
163             blocking-jobs:
164                 - '^xci-deploy.*'
165                 - '^xci-functest.*'
166                 - '^bifrost-.*periodic.*'
167                 - '^osa-.*periodic.*'
168             block-level: 'NODE'
169         - logrotate-default
170
171     wrappers:
172         - fix-workspace-permissions
173
174     scm:
175         - git-scm
176
177     parameters:
178         - project-parameter:
179             project: '{project}'
180             branch: '{opnfv-releng-version}'
181         - string:
182             name: GIT_BASE
183             default: https://gerrit.opnfv.org/gerrit/$PROJECT
184         - string:
185             name: DEPLOY_SCENARIO
186             default: 'os-nosdn-nofeature-ha'
187         - string:
188             name: XCI_FLAVOR
189             default: 'ha'
190         - string:
191             name: DISTRO
192             default: '{distro}'
193         - string:
194             name: DIB_OS_RELEASE
195             default: '{dib-os-release}'
196         - string:
197             name: DIB_OS_ELEMENT
198             default: '{dib-os-element}'
199         - string:
200             name: DIB_OS_PACKAGES
201             default: '{dib-os-packages}'
202         - string:
203             name: EXTRA_DIB_ELEMENTS
204             default: '{extra-dib-elements}'
205         - string:
206             name: CLEAN_DIB_IMAGES
207             default: 'true'
208         - label:
209             name: SLAVE_LABEL
210             default: '{slave-label}'
211         - string:
212             name: ANSIBLE_VERBOSITY
213             default: ''
214         - string:
215             name: XCI_LOOP
216             default: 'daily'
217
218     builders:
219         - description-setter:
220             description: "Built on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
221         - 'xci-{phase}-builder'
222
223 #---------------------------
224 # builder macros
225 #---------------------------
226 - builder:
227     name: xci-deploy-builder
228     builders:
229         - shell:
230             !include-raw: ./xci-deploy.sh
231
232 - builder:
233     name: xci-functest-builder
234     builders:
235         - shell:
236             !include-raw: ./xci-functest.sh