Merge "xci: Create skeletons for jobs and rename directory"
[releng.git] / jjb / xci / 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                 disable-strict-forbidden-file-verification: 'true'
176                 forbidden-file-paths:
177                   - compare-type: ANT
178                     pattern: 'doc/**'
179                   - compare-type: ANT
180                     pattern: 'releasenotes/**'
181                 disable-strict-forbidden-file-verification: 'true'
182             readable-message: true
183 - trigger:
184     name: 'opnfv-gerrit-trigger'
185     triggers:
186         - gerrit:
187             server-name: 'gerrit.opnfv.org'
188             trigger-on:
189                 - patchset-created-event:
190                     exclude-drafts: 'false'
191                     exclude-trivial-rebase: 'false'
192                     exclude-no-code-change: 'false'
193                 - draft-published-event
194                 - comment-added-contains-event:
195                     comment-contains-value: 'recheck'
196                 - comment-added-contains-event:
197                     comment-contains-value: 'reverify'
198             custom-url: '* $JOB_NAME $BIFROST_LOG_URL/index.html'
199             projects:
200               - project-compare-type: 'ANT'
201                 project-pattern: 'releng'
202                 branches:
203                   - branch-compare-type: 'ANT'
204                     branch-pattern: '**/{branch}'
205                 file-paths:
206                   - compare-type: ANT
207                     pattern: 'prototypes/bifrost/**'
208             readable-message: true
209
210 #---------------------------
211 # builder macros
212 #---------------------------
213 - builder:
214     name: bifrost-set-name
215     builders:
216         - description-setter:
217             description: "Built on $NODE_NAME"
218
219 - builder:
220     name: bifrost-build
221     builders:
222         - shell:
223             !include-raw: ./bifrost-verify.sh