Merge "[fuel]reschedule fuel daily job on zte pods"
[releng.git] / jjb / xci / osa-periodic-jobs.yml
1 - project:
2     project: 'releng'
3
4     name: 'os-periodic'
5 #--------------------------------
6 # Branch Anchors
7 #--------------------------------
8 # the versions stated here default to branches which then later
9 # on used for checking out the branches, pulling in head of the branch.
10     master: &master
11         stream: master
12         openstack-osa-version: '{stream}'
13         opnfv-releng-version: 'master'
14         gs-pathname: ''
15     ocata: &ocata
16         stream: ocata
17         openstack-osa-version: 'stable/{stream}'
18         opnfv-releng-version: 'master'
19         gs-pathname: '/{stream}'
20 #--------------------------------
21 #        XCI PODs
22 #--------------------------------
23     pod:
24         - virtual:
25             <<: *master
26         - virtual:
27             <<: *ocata
28 #--------------------------------
29 # Supported Distros
30 #--------------------------------
31     distro:
32         - 'xenial':
33             disabled: false
34             slave-label: xci-xenial-virtual
35             dib-os-release: 'xenial'
36             dib-os-element: 'ubuntu-minimal'
37             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,iptables'
38             extra-dib-elements: 'openssh-server'
39         - 'centos7':
40             disabled: true
41             slave-label: xci-centos7-virtual
42             dib-os-release: '7'
43             dib-os-element: 'centos7'
44             dib-os-packages: 'vim,less,bridge-utils,iputils,rsyslog,curl'
45             extra-dib-elements: 'openssh-server'
46         - 'suse':
47             disabled: true
48             slave-label: xci-suse-virtual
49             dib-os-release: '42.2'
50             dib-os-element: 'opensuse-minimal'
51             dib-os-packages: 'vim,less,bridge-utils,iputils,rsyslog,curl'
52             extra-dib-elements: 'openssh-server'
53
54 #--------------------------------
55 # jobs
56 #--------------------------------
57     jobs:
58         - 'osa-deploy-{pod}-{distro}-periodic-{stream}'
59
60 #--------------------------------
61 # job templates
62 #--------------------------------
63 - job-template:
64     name: 'osa-deploy-{pod}-{distro}-periodic-{stream}'
65
66     disabled: '{obj:disabled}'
67
68     concurrent: false
69
70     properties:
71         - build-blocker:
72             use-build-blocker: true
73             blocking-jobs:
74                 - '^xci-os.*'
75                 - '^xci-deploy.*'
76                 - '^xci-functest.*'
77                 - '^bifrost-.*periodic.*'
78                 - '^osa-.*periodic.*'
79             block-level: 'NODE'
80         - logrotate-default
81
82     parameters:
83         - project-parameter:
84             project: '{project}'
85             branch: '{opnfv-releng-version}'
86         - string:
87             name: GIT_BASE
88             default: https://gerrit.opnfv.org/gerrit/$PROJECT
89         - string:
90             name: XCI_FLAVOR
91             default: 'ha'
92         - string:
93             name: OPENSTACK_OSA_VERSION
94             default: '{openstack-osa-version}'
95         - string:
96             name: OPNFV_RELENG_VERSION
97             default: '{opnfv-releng-version}'
98         - string:
99             name: DISTRO
100             default: '{distro}'
101         - string:
102             name: DIB_OS_RELEASE
103             default: '{dib-os-release}'
104         - string:
105             name: DIB_OS_ELEMENT
106             default: '{dib-os-element}'
107         - string:
108             name: DIB_OS_PACKAGES
109             default: '{dib-os-packages}'
110         - string:
111             name: EXTRA_DIB_ELEMENTS
112             default: '{extra-dib-elements}'
113         - string:
114             name: CLEAN_DIB_IMAGES
115             default: 'true'
116         - label:
117             name: SLAVE_LABEL
118             default: '{slave-label}'
119         - string:
120             name: ANSIBLE_VERBOSITY
121             default: ''
122         - string:
123             name: XCI_LOOP
124             default: 'periodic'
125
126     wrappers:
127         - fix-workspace-permissions
128
129     scm:
130         - git-scm
131
132     # trigger is disabled until we know which jobs we will have
133     # and adjust stuff accordingly
134     triggers:
135         - timed: ''  # '@midnight'
136
137     builders:
138         - description-setter:
139             description: "Built on $NODE_NAME - Scenario: $DEPLOY_SCENARIO"
140         - 'osa-deploy-builder'
141
142 #---------------------------
143 # builder macros
144 #---------------------------
145 - builder:
146     name: osa-deploy-builder
147     builders:
148         - shell:
149             !include-raw: ./xci-deploy.sh