5 #####################################
7 #####################################
13 #####################################
15 #####################################
18 slave-label: 'opnfv-build-centos'
20 slave-label: 'opnfv-build-centos'
21 #####################################
23 #####################################
25 - 'escalator-verify-{stream}'
26 - 'escalator-verify-{phase}-{stream}'
27 - 'escalator-merge-{stream}'
28 - 'escalator-merge-{phase}-{stream}'
29 #####################################
31 #####################################
33 name: 'escalator-verify-{stream}'
35 project-type: multijob
49 credentials-id: '{ssh-credentials}'
50 refspec: '$GERRIT_REFSPEC'
51 choosing-strategy: 'gerrit'
54 - ssh-agent-credentials:
63 server-name: 'gerrit.opnfv.org'
65 - patchset-created-event:
66 exclude-drafts: 'false'
67 exclude-trivial-rebase: 'false'
68 exclude-no-code-change: 'false'
69 - draft-published-event
70 - comment-added-contains-event:
71 comment-contains-value: 'recheck'
72 - comment-added-contains-event:
73 comment-contains-value: 'reverify'
75 - project-compare-type: 'ANT'
76 project-pattern: '{project}'
78 - branch-compare-type: 'ANT'
79 branch-pattern: '**/{branch}'
82 pattern: 'docs/**|.gitignore'
83 readable-message: true
90 - 'opnfv-build-defaults'
91 - 'escalator-defaults':
92 gs-pathname: '{gs-pathname}'
96 description: "Built on $NODE_NAME"
101 - name: 'escalator-verify-basic-{stream}'
102 current-parameters: false
103 predefined-parameters: |
104 GERRIT_BRANCH=$GERRIT_BRANCH
105 GERRIT_REFSPEC=$GERRIT_REFSPEC
106 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
107 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
108 node-parameters: false
109 kill-phase-on: FAILURE
113 condition: SUCCESSFUL
115 - name: 'escalator-verify-build-{stream}'
116 current-parameters: false
117 predefined-parameters: |
118 GERRIT_BRANCH=$GERRIT_BRANCH
119 GERRIT_REFSPEC=$GERRIT_REFSPEC
120 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
121 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
122 node-parameters: false
123 kill-phase-on: FAILURE
127 name: 'escalator-verify-{phase}-{stream}'
129 disabled: '{obj:disabled}'
134 - gerrit-trigger-scm:
135 credentials-id: '{ssh-credentials}'
136 refspec: '$GERRIT_REFSPEC'
137 choosing-strategy: 'gerrit'
140 - ssh-agent-credentials:
142 - '{ssh-credentials}'
152 - '{slave-label}-defaults'
153 - 'escalator-defaults':
154 gs-pathname: '{gs-pathname}'
157 - description-setter:
158 description: "Built on $NODE_NAME"
159 - '{project}-verify-{phase}-macro'
162 name: 'escalator-merge-{stream}'
164 project-type: multijob
177 - gerrit-trigger-scm:
178 credentials-id: '{ssh-credentials}'
179 refspec: '$GERRIT_REFSPEC'
180 choosing-strategy: 'gerrit'
183 - ssh-agent-credentials:
185 - '{ssh-credentials}'
192 server-name: 'gerrit.opnfv.org'
194 - change-merged-event
195 - comment-added-contains-event:
196 comment-contains-value: 'remerge'
198 - project-compare-type: 'ANT'
199 project-pattern: '{project}'
201 - branch-compare-type: 'ANT'
202 branch-pattern: '**/{branch}'
203 forbidden-file-paths:
205 pattern: 'docs/**|.gitignore'
206 readable-message: true
213 - 'opnfv-build-defaults'
214 - 'escalator-defaults':
215 gs-pathname: '{gs-pathname}'
218 - description-setter:
219 description: "Built on $NODE_NAME"
222 condition: SUCCESSFUL
224 - name: 'escalator-merge-basic-{stream}'
225 current-parameters: false
226 predefined-parameters: |
227 GERRIT_BRANCH=$GERRIT_BRANCH
228 GERRIT_REFSPEC=$GERRIT_REFSPEC
229 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
230 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
231 node-parameters: false
232 kill-phase-on: FAILURE
236 condition: SUCCESSFUL
238 - name: 'escalator-merge-build-{stream}'
239 current-parameters: false
240 predefined-parameters: |
241 GERRIT_BRANCH=$GERRIT_BRANCH
242 GERRIT_REFSPEC=$GERRIT_REFSPEC
243 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
244 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
245 node-parameters: false
246 kill-phase-on: FAILURE
250 name: 'escalator-merge-{phase}-{stream}'
252 disabled: '{obj:disabled}'
257 - gerrit-trigger-scm:
258 credentials-id: '{ssh-credentials}'
259 refspec: '$GERRIT_REFSPEC'
260 choosing-strategy: 'gerrit'
263 - ssh-agent-credentials:
265 - '{ssh-credentials}'
275 - '{slave-label}-defaults'
276 - 'escalator-defaults':
277 gs-pathname: '{gs-pathname}'
280 - description-setter:
281 description: "Built on $NODE_NAME"
282 - '{project}-merge-{phase}-macro'
283 #####################################
285 #####################################
287 name: 'escalator-verify-basic-macro'
290 !include-raw: ./escalator-basic.sh
293 name: 'escalator-verify-build-macro'
296 !include-raw: ./escalator-build.sh
299 name: 'escalator-merge-basic-macro'
302 !include-raw: ./escalator-basic.sh
305 name: 'escalator-merge-build-macro'
309 - ./escalator-build.sh
310 - ./escalator-upload-artifact.sh
311 #####################################
313 #####################################
315 name: 'escalator-defaults'
318 name: BUILD_DIRECTORY
319 default: $WORKSPACE/build_output
320 description: "Directory where the build artifact will be located upon the completion of the build."
322 name: CACHE_DIRECTORY
323 default: $HOME/opnfv/cache/$INSTALLER_TYPE
324 description: "Directory where the cache to be used during the build is located."
327 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
328 description: "URL to Google Storage."