Merge "fuel: Enable 3rd party CI for fuel plugin onos"
[releng.git] / jjb / fuel / fuel-plugin-verify-jobs.yml
1 - project:
2     name: 'fuel-plugin-verify-jobs'
3
4     project: 'fuel-plugin'
5
6     installer: 'fuel'
7 #####################################
8 # branch definitions
9 #####################################
10     stream:
11         - master:
12             branch: '{stream}'
13             gs-pathname: ''
14             disabled: false
15 #####################################
16 # patch verification phases
17 #####################################
18     phase:
19         - 'build':
20             slave-label: 'opnfv-build-ubuntu'
21         - 'test':
22             slave-label: 'opnfv-build-ubuntu'
23 #####################################
24 # jobs
25 #####################################
26     jobs:
27         - 'fuel-verify-plugin-{stream}'
28         - 'fuel-verify-plugin-{phase}-{stream}'
29 #####################################
30 # job templates
31 #####################################
32 - job-template:
33     name: 'fuel-verify-plugin-{stream}'
34
35     project-type: multijob
36
37     disabled: '{obj:disabled}'
38
39     concurrent: true
40
41     properties:
42         - throttle:
43             enabled: true
44             max-total: 4
45             option: 'project'
46
47     scm:
48         - git:
49             url: 'https://git.openstack.org/$GERRIT_PROJECT'
50             refspec: '$GERRIT_REFSPEC'
51             branches:
52                 - 'origin/$GERRIT_BRANCH'
53             skip-tag: true
54             choosing-strategy: 'gerrit'
55             timeout: 10
56             wipe-workspace: true
57
58     wrappers:
59         - ssh-agent-credentials:
60             users:
61                 - '{ssh-credentials}'
62         - timeout:
63             timeout: 360
64             fail: true
65
66     triggers:
67         - gerrit:
68             server-name: 'review.openstack.org'
69             silent-start: false
70             skip-vote:
71                 successful: true
72                 failed: true
73                 unstable: true
74                 notbuilt: true
75             escape-quotes: true
76             trigger-on:
77                 - patchset-created-event:
78                     exclude-drafts: 'false'
79                     exclude-trivial-rebase: 'false'
80                     exclude-no-code-change: 'false'
81                 - comment-added-contains-event:
82                     comment-contains-value: 'recheck'
83                 - comment-added-contains-event:
84                     comment-contains-value: 'reverify'
85             projects:
86               - project-compare-type: 'PLAIN'
87                 project-pattern: 'openstack/fuel-plugin-bgpvpn'
88                 branches:
89                   - branch-compare-type: 'ANT'
90                     branch-pattern: '**/{branch}'
91                 forbidden-file-paths:
92                   - compare-type: ANT
93                     pattern: 'README.md|.gitignore|.gitreview'
94               - project-compare-type: 'PLAIN'
95                 project-pattern: 'openstack/fuel-plugin-onos'
96                 branches:
97                   - branch-compare-type: 'ANT'
98                     branch-pattern: '**/{branch}'
99                 forbidden-file-paths:
100                   - compare-type: ANT
101                     pattern: 'README.md|.gitignore|.gitreview'
102             readable-message: true
103
104     parameters:
105         - project-parameter:
106             project: '{project}'
107         - gerrit-parameter:
108             branch: '{branch}'
109         - 'opnfv-build-defaults'
110         - 'fuel-verify-plugin-defaults':
111             gs-pathname: '{gs-pathname}'
112
113     builders:
114         - description-setter:
115             description: "Built on $NODE_NAME"
116         - multijob:
117             name: build
118             condition: SUCCESSFUL
119             projects:
120                 - name: 'fuel-verify-plugin-build-{stream}'
121                   current-parameters: false
122                   predefined-parameters: |
123                     GERRIT_PROJECT=$GERRIT_PROJECT
124                     GERRIT_BRANCH=$GERRIT_BRANCH
125                     GERRIT_REFSPEC=$GERRIT_REFSPEC
126                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
127                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
128                   node-parameters: false
129                   kill-phase-on: FAILURE
130                   abort-all-job: true
131         - multijob:
132             name: test
133             condition: SUCCESSFUL
134             projects:
135                 - name: 'fuel-verify-plugin-test-{stream}'
136                   current-parameters: false
137                   predefined-parameters: |
138                     GERRIT_PROJECT=$GERRIT_PROJECT
139                     GERRIT_BRANCH=$GERRIT_BRANCH
140                     GERRIT_REFSPEC=$GERRIT_REFSPEC
141                     GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
142                     GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
143                   node-parameters: false
144                   kill-phase-on: FAILURE
145                   abort-all-job: true
146
147 - job-template:
148     name: 'fuel-verify-plugin-{phase}-{stream}'
149
150     disabled: '{obj:disabled}'
151
152     concurrent: true
153
154     properties:
155         - throttle:
156             enabled: true
157             max-total: 6
158             option: 'project'
159         - build-blocker:
160             use-build-blocker: true
161             blocking-jobs:
162                 - 'fuel-verify-plugin-test-.*'
163             block-level: 'NODE'
164
165     scm:
166         - git:
167             url: 'https://git.openstack.org/$GERRIT_PROJECT'
168             refspec: '$GERRIT_REFSPEC'
169             branches:
170                 - 'origin/$GERRIT_BRANCH'
171             skip-tag: true
172             choosing-strategy: 'gerrit'
173             timeout: 10
174             wipe-workspace: true
175
176     wrappers:
177         - ssh-agent-credentials:
178             users:
179                 - '{ssh-credentials}'
180         - timeout:
181             timeout: 360
182             fail: true
183     parameters:
184         - project-parameter:
185             project: '{project}'
186         - gerrit-parameter:
187             branch: '{branch}'
188         - '{slave-label}-defaults'
189         - '{installer}-defaults'
190         - 'fuel-verify-plugin-defaults':
191             gs-pathname: '{gs-pathname}'
192
193     builders:
194         - description-setter:
195             description: "Built on $NODE_NAME"
196         - 'fuel-verify-plugin-{phase}-macro'
197 #####################################
198 # builder macros
199 #####################################
200 - builder:
201     name: 'fuel-verify-plugin-build-macro'
202     builders:
203         - shell: |
204             #!/bin/bash
205
206             echo "Not activated!"
207
208 - builder:
209     name: 'fuel-verify-plugin-test-macro'
210     builders:
211         - shell: |
212             #!/bin/bash
213
214             echo "Not activated!"
215 #####################################
216 # parameter macros
217 #####################################
218 - parameter:
219     name: 'fuel-verify-plugin-defaults'
220     parameters:
221         - string:
222             name: BUILD_DIRECTORY
223             default: $WORKSPACE/build_output
224             description: "Directory where the build artifact will be located upon the completion of the build."
225         - string:
226             name: CACHE_DIRECTORY
227             default: $HOME/opnfv/cache/$INSTALLER_TYPE
228             description: "Directory where the cache to be used during the build is located."
229         - string:
230             name: GS_URL
231             default: artifacts.opnfv.org/$PROJECT{gs-pathname}
232             description: "URL to Google Storage."