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:
64 - patchset-created-event:
65 exclude-drafts: 'false'
66 exclude-trivial-rebase: 'false'
67 exclude-no-code-change: 'false'
68 - draft-published-event
69 - comment-added-contains-event:
70 comment-contains-value: 'recheck'
71 - comment-added-contains-event:
72 comment-contains-value: 'reverify'
74 - project-compare-type: 'ANT'
75 project-pattern: '{project}'
77 - branch-compare-type: 'ANT'
78 branch-pattern: '**/{branch}'
81 pattern: 'docs/**|.gitignore'
82 readable-message: true
89 - 'opnfv-build-defaults'
90 - 'escalator-defaults':
91 gs-pathname: '{gs-pathname}'
95 description: "Built on $NODE_NAME"
100 - name: 'escalator-verify-basic-{stream}'
101 current-parameters: false
102 predefined-parameters: |
103 GERRIT_BRANCH=$GERRIT_BRANCH
104 GERRIT_REFSPEC=$GERRIT_REFSPEC
105 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
106 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
107 node-parameters: false
108 kill-phase-on: FAILURE
112 condition: SUCCESSFUL
114 - name: 'escalator-verify-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
126 name: 'escalator-verify-{phase}-{stream}'
128 disabled: '{obj:disabled}'
133 - gerrit-trigger-scm:
134 credentials-id: '{ssh-credentials}'
135 refspec: '$GERRIT_REFSPEC'
136 choosing-strategy: 'gerrit'
139 - ssh-agent-credentials:
141 - '{ssh-credentials}'
151 - '{slave-label}-defaults'
152 - 'escalator-defaults':
153 gs-pathname: '{gs-pathname}'
156 - description-setter:
157 description: "Built on $NODE_NAME"
158 - '{project}-verify-{phase}-macro'
161 name: 'escalator-merge-{stream}'
163 project-type: multijob
176 - gerrit-trigger-scm:
177 credentials-id: '{ssh-credentials}'
178 refspec: '$GERRIT_REFSPEC'
179 choosing-strategy: 'gerrit'
182 - ssh-agent-credentials:
184 - '{ssh-credentials}'
192 - change-merged-event
193 - comment-added-contains-event:
194 comment-contains-value: 'remerge'
196 - project-compare-type: 'ANT'
197 project-pattern: '{project}'
199 - branch-compare-type: 'ANT'
200 branch-pattern: '**/{branch}'
201 forbidden-file-paths:
203 pattern: 'docs/**|.gitignore'
204 readable-message: true
211 - 'opnfv-build-defaults'
212 - 'escalator-defaults':
213 gs-pathname: '{gs-pathname}'
216 - description-setter:
217 description: "Built on $NODE_NAME"
220 condition: SUCCESSFUL
222 - name: 'escalator-merge-basic-{stream}'
223 current-parameters: false
224 predefined-parameters: |
225 GERRIT_BRANCH=$GERRIT_BRANCH
226 GERRIT_REFSPEC=$GERRIT_REFSPEC
227 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
228 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
229 node-parameters: false
230 kill-phase-on: FAILURE
234 condition: SUCCESSFUL
236 - name: 'escalator-merge-build-{stream}'
237 current-parameters: false
238 predefined-parameters: |
239 GERRIT_BRANCH=$GERRIT_BRANCH
240 GERRIT_REFSPEC=$GERRIT_REFSPEC
241 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
242 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
243 node-parameters: false
244 kill-phase-on: FAILURE
248 name: 'escalator-merge-{phase}-{stream}'
250 disabled: '{obj:disabled}'
255 - gerrit-trigger-scm:
256 credentials-id: '{ssh-credentials}'
257 refspec: '$GERRIT_REFSPEC'
258 choosing-strategy: 'gerrit'
261 - ssh-agent-credentials:
263 - '{ssh-credentials}'
273 - '{slave-label}-defaults'
274 - 'escalator-defaults':
275 gs-pathname: '{gs-pathname}'
278 - description-setter:
279 description: "Built on $NODE_NAME"
280 - '{project}-merge-{phase}-macro'
281 #####################################
283 #####################################
285 name: 'escalator-verify-basic-macro'
288 !include-raw: ./escalator-basic.sh
291 name: 'escalator-verify-build-macro'
294 !include-raw: ./escalator-build.sh
297 name: 'escalator-merge-basic-macro'
300 !include-raw: ./escalator-basic.sh
303 name: 'escalator-merge-build-macro'
307 - ./escalator-build.sh
308 - ./escalator-upload-artifact.sh
309 #####################################
311 #####################################
313 name: 'escalator-defaults'
316 name: BUILD_DIRECTORY
317 default: $WORKSPACE/build_output
318 description: "Directory where the build artifact will be located upon the completion of the build."
320 name: CACHE_DIRECTORY
321 default: $HOME/opnfv/cache/$INSTALLER_TYPE
322 description: "Directory where the cache to be used during the build is located."
325 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
326 description: "URL to Google Storage."