Update emailbox
[releng.git] / jjb / infra / bifrost-verify-jobs.yml
1 - project:
2     name: 'openstack-bifrost-verify'
3 #--------------------------------
4 # branches
5 #--------------------------------
6     stream:
7         - master:
8             branch: '{stream}'
9 #--------------------------------
10 # projects
11 #--------------------------------
12     project:
13         - 'openstack':
14             project-repo: 'https://git.openstack.org/openstack/bifrost'
15             clone-location: '/opt/bifrost'
16         - 'opnfv':
17             project-repo: 'https://gerrit.opnfv.org/gerrit/releng'
18             clone-location: '/opt/releng'
19 #--------------------------------
20 # distros
21 #--------------------------------
22     distro:
23         - 'trusty':
24             disabled: false
25             dib-os-release: 'trusty'
26             dib-os-element: 'ubuntu-minimal'
27             dib-os-packages: 'vlan,vim,less,bridge-utils,language-pack-en,iputils-ping,rsyslog,curl'
28             extra-dib-elements: 'openssh-server'
29         - 'centos7':
30             disabled: false
31             dib-os-release: '7'
32             dib-os-element: 'centos7'
33             dib-os-packages: 'vim,less,bridge-utils,iputils,rsyslog,curl'
34             extra-dib-elements: 'openssh-server'
35         - 'suse':
36             disabled: false
37             dib-os-release: '42.2'
38             dib-os-element: 'opensuse-minimal'
39             dib-os-packages: 'vim,less,bridge-utils,iputils,rsyslog,curl'
40             extra-dib-elements: 'openssh-server'
41 #--------------------------------
42 # type
43 #--------------------------------
44     type:
45         - virtual
46 #--------------------------------
47 # jobs
48 #--------------------------------
49     jobs:
50         - '{project}-bifrost-verify-{distro}-{type}-{stream}'
51
52 #--------------------------------
53 # VM defaults
54 #--------------------------------
55 - defaults:
56     name: vm_defaults
57     vm-disk: '30'
58     vm-disk-cache: 'unsafe'
59     vm-memory: '4096'
60     vm-cpu: '2'
61
62 #--------------------------------
63 # job templates
64 #--------------------------------
65 - job-template:
66     name: '{project}-bifrost-verify-{distro}-{type}-{stream}'
67
68     disabled: '{obj:disabled}'
69
70     defaults: vm_defaults
71
72     concurrent: false
73
74     properties:
75         - logrotate-default
76         - build-blocker:
77             use-build-blocker: true
78             blocking-jobs:
79                 - '.*-bifrost-verify.*-{type}'
80             block-level: 'NODE'
81
82     parameters:
83         - string:
84             name: PROJECT
85             default: '{project}'
86         - string:
87             name: PROJECT_REPO
88             default: '{project-repo}'
89         - string:
90             name: CLONE_LOCATION
91             default: '{clone-location}'
92         - string:
93             name: DISTRO
94             default: '{distro}'
95         - string:
96             name: DIB_OS_RELEASE
97             default: '{dib-os-release}'
98         - string:
99             name: DIB_OS_ELEMENT
100             default: '{dib-os-element}'
101         - string:
102             name: EXTRA_DIB_ELEMENTS
103             default: '{extra-dib-elements}'
104         - string:
105             name: DIB_OS_PACKAGES
106             default: '{dib-os-packages}'
107         - string:
108             name: VM_DISK
109             default: '{vm-disk}'
110         - string:
111             name: VM_DISK_CACHE
112             default: '{vm-disk-cache}'
113         - string:
114             name: VM_MEMORY
115             default: '{vm-memory}'
116         - string:
117             name: VM_CPU
118             default: '{vm-cpu}'
119         - string:
120             name: CLEAN_DIB_IMAGES
121             default: 'true'
122         - label:
123             name: SLAVE_LABEL
124             default: 'infra-{type}-{distro}'
125         - string:
126             name: BIFROST_LOG_URL
127             default: 'http://artifacts.opnfv.org/cross-community-ci/openstack/bifrost/$GERRIT_NAME/$GERRIT_CHANGE_NUMBER/$GERRIT_PATCHSET_NUMBER/$JOB_NAME'
128
129     scm:
130         - git:
131             url: '$PROJECT_REPO'
132             refspec: '$GERRIT_REFSPEC'
133             branches:
134                 - 'origin/$BRANCH'
135             skip-tag: true
136             choosing-strategy: 'gerrit'
137             timeout: 10
138             wipe-workspace: true
139
140     triggers:
141         - '{project}-gerrit-trigger':
142             branch: '{branch}'
143
144     builders:
145         - bifrost-set-name
146         - bifrost-build
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 #--------------------------------
152 # trigger macros
153 #--------------------------------
154 - trigger:
155     name: 'openstack-gerrit-trigger'
156     triggers:
157         - gerrit:
158             server-name: 'review.openstack.org'
159             escape-quotes: true
160             trigger-on:
161                 - patchset-created-event:
162                     exclude-drafts: 'false'
163                     exclude-trivial-rebase: 'false'
164                     exclude-no-code-change: 'false'
165                 - comment-added-contains-event:
166                     comment-contains-value: 'recheck'
167             custom-url: '* $JOB_NAME $BIFROST_LOG_URL/index.html'
168             silent-start: true
169             projects:
170               - project-compare-type: 'PLAIN'
171                 project-pattern: 'openstack/bifrost'
172                 branches:
173                   - branch-compare-type: 'ANT'
174                     branch-pattern: '**/{branch}'
175                 forbidden-file-paths:
176                   - compare-type: ANT
177                     pattern: 'doc/**'
178                   - compare-type: ANT
179                     pattern: 'releasenotes/**'
180             readable-message: true
181 - trigger:
182     name: 'opnfv-gerrit-trigger'
183     triggers:
184         - gerrit:
185             server-name: 'gerrit.opnfv.org'
186             trigger-on:
187                 - patchset-created-event:
188                     exclude-drafts: 'false'
189                     exclude-trivial-rebase: 'false'
190                     exclude-no-code-change: 'false'
191                 - draft-published-event
192                 - comment-added-contains-event:
193                     comment-contains-value: 'recheck'
194                 - comment-added-contains-event:
195                     comment-contains-value: 'reverify'
196             custom-url: '* $JOB_NAME $BIFROST_LOG_URL/index.html'
197             projects:
198               - project-compare-type: 'ANT'
199                 project-pattern: 'releng'
200                 branches:
201                   - branch-compare-type: 'ANT'
202                     branch-pattern: '**/{branch}'
203                 file-paths:
204                   - compare-type: ANT
205                     pattern: 'prototypes/bifrost/**'
206             readable-message: true
207
208 #---------------------------
209 # builder macros
210 #---------------------------
211 - builder:
212     name: bifrost-set-name
213     builders:
214         - description-setter:
215             description: "Built on $NODE_NAME"
216
217 - builder:
218     name: bifrost-build
219     builders:
220         - shell:
221             !include-raw: ./bifrost-verify.sh