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