Merge "reslove issue about can not trigger verify jobs"
[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: 'openssh-server,vlan,vim,less,bridge-utils,language-pack-en,iputils-ping,rsyslog,curl'
28         - 'centos7':
29             disabled: false
30             dib-os-release: '7'
31             dib-os-element: 'centos-minimal'
32             dib-os-packages: 'openssh-server,vim,less,bridge-utils,iputils,rsyslog,curl'
33         - 'suse':
34             disabled: true
35             dib-os-release: 'suse'
36             dib-os-element: 'suse'
37             dib-os-packages: ''
38 #--------------------------------
39 # type
40 #--------------------------------
41     type:
42         - virtual
43 #--------------------------------
44 # jobs
45 #--------------------------------
46     jobs:
47         - '{project}-bifrost-verify-{distro}-{type}-{stream}'
48 #--------------------------------
49 # job templates
50 #--------------------------------
51 - job-template:
52     name: '{project}-bifrost-verify-{distro}-{type}-{stream}'
53
54     disabled: '{obj:disabled}'
55
56     concurrent: false
57
58     properties:
59         - build-blocker:
60             use-build-blocker: true
61             blocking-jobs:
62                 - '.*-bifrost-verify.*-{type}'
63             block-level: 'NODE'
64
65     parameters:
66         - string:
67             name: PROJECT
68             default: '{project}'
69         - string:
70             name: PROJECT_REPO
71             default: '{project-repo}'
72         - string:
73             name: CLONE_LOCATION
74             default: '{clone-location}'
75         - string:
76             name: DISTRO
77             default: '{distro}'
78         - string:
79             name: DIB_OS_RELEASE
80             default: '{dib-os-release}'
81         - string:
82             name: DIB_OS_ELEMENT
83             default: '{dib-os-element}'
84         - string:
85             name: DIB_OS_PACKAGES
86             default: '{dib-os-packages}'
87         - string:
88             name: CLEAN_DIB_IMAGES
89             default: 'true'
90         - label:
91             name: SLAVE_LABEL
92             default: 'infra-{type}-{distro}'
93
94     scm:
95         - git:
96             url: '$PROJECT_REPO'
97             refspec: '$GERRIT_REFSPEC'
98             branches:
99                 - 'origin/$GERRIT_BRANCH'
100             skip-tag: true
101             choosing-strategy: 'gerrit'
102             timeout: 10
103             wipe-workspace: true
104
105     triggers:
106         - '{project}-gerrit-trigger':
107             branch: '{branch}'
108
109     builders:
110         - description-setter:
111             description: "Built on $NODE_NAME"
112         - shell:
113             !include-raw-escape: ./bifrost-verify.sh
114
115     publishers:
116         - email:
117             recipients: fatih.degirmenci@ericsson.com yroblamo@redhat.com mchandras@suse.de jack.morgan@intel.com zhang.jun3g@zte.com.cn
118 #--------------------------------
119 # trigger macros
120 #--------------------------------
121 - trigger:
122     name: 'openstack-gerrit-trigger'
123     triggers:
124         - gerrit:
125             server-name: 'review.openstack.org'
126             escape-quotes: true
127             trigger-on:
128                 - patchset-created-event:
129                     exclude-drafts: 'false'
130                     exclude-trivial-rebase: 'false'
131                     exclude-no-code-change: 'false'
132                 - comment-added-contains-event:
133                     comment-contains-value: 'recheck'
134             custom-url: '* $JOB_NAME $BUILD_URL'
135             silent-start: true
136             projects:
137               - project-compare-type: 'PLAIN'
138                 project-pattern: 'openstack/bifrost'
139                 branches:
140                   - branch-compare-type: 'ANT'
141                     branch-pattern: '**/{branch}'
142                 forbidden-file-paths:
143                   - compare-type: ANT
144                     pattern: 'doc/**'
145                   - compare-type: ANT
146                     pattern: 'releasenotes/**'
147             readable-message: true
148 - trigger:
149     name: 'opnfv-gerrit-trigger'
150     triggers:
151         - gerrit:
152             server-name: 'gerrit.opnfv.org'
153             trigger-on:
154                 - patchset-created-event:
155                     exclude-drafts: 'false'
156                     exclude-trivial-rebase: 'false'
157                     exclude-no-code-change: 'false'
158                 - draft-published-event
159                 - comment-added-contains-event:
160                     comment-contains-value: 'recheck'
161                 - comment-added-contains-event:
162                     comment-contains-value: 'reverify'
163             projects:
164               - project-compare-type: 'ANT'
165                 project-pattern: 'releng'
166                 branches:
167                   - branch-compare-type: 'ANT'
168                     branch-pattern: '**/{branch}'
169                 file-paths:
170                   - compare-type: ANT
171                     pattern: 'prototypes/bifrost/**'
172                   - compare-type: ANT
173                     pattern: 'jjb/infra/**'
174             readable-message: true