2 # TODO: rename the project name
3 # TODO: get rid of appended -exp from the remainder of the file
4 name: 'fuel-verify-jobs-experimental'
9 #------------------------------------
11 #------------------------------------
12 # TODO: enable master once things settle
15 branch: 'stable/{stream-exp}'
16 gs-pathname: '/{stream-exp}'
18 #------------------------------------
19 # patch verification phases
20 #------------------------------------
23 # this phase does basic commit message check, unit test and so on
24 slave-label: 'opnfv-build'
26 # this phase builds artifacts if valid for given installer
27 slave-label: 'opnfv-build-ubuntu'
29 # this phase does virtual deployment using the artifacts produced in previous phase
30 slave-label: 'fuel-virtual'
32 # this phase runs functest smoke test
33 slave-label: 'fuel-virtual'
34 #------------------------------------
36 #------------------------------------
38 - 'fuel-verify-{stream-exp}'
39 - 'fuel-verify-{phase}-{stream-exp}'
40 #------------------------------------
42 #------------------------------------
44 name: 'fuel-verify-{stream-exp}'
46 project-type: multijob
48 disabled: '{obj:disabled}'
50 # TODO: this is valid for experimental only
51 # enable concurrency for master once things settle
62 credentials-id: '{ssh-credentials}'
63 refspec: '$GERRIT_REFSPEC'
64 choosing-strategy: 'gerrit'
67 - ssh-agent-credentials:
76 server-name: 'gerrit.opnfv.org'
78 - patchset-created-event:
79 exclude-drafts: 'false'
80 exclude-trivial-rebase: 'false'
81 exclude-no-code-change: 'false'
82 - draft-published-event
83 - comment-added-contains-event:
84 comment-contains-value: 'recheck'
85 - comment-added-contains-event:
86 comment-contains-value: 'reverify'
88 - project-compare-type: 'ANT'
89 project-pattern: '{project}'
91 - branch-compare-type: 'ANT'
92 branch-pattern: '**/{branch}'
100 forbidden-file-paths:
103 readable-message: true
110 - 'opnfv-build-defaults'
111 - 'fuel-verify-defaults-exp':
112 gs-pathname: '{gs-pathname}'
115 - description-setter:
116 description: "Built on $NODE_NAME"
119 condition: SUCCESSFUL
121 - name: 'fuel-verify-basic-{stream-exp}'
122 current-parameters: false
123 predefined-parameters: |
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
133 condition: SUCCESSFUL
135 - name: 'fuel-verify-build-{stream-exp}'
136 current-parameters: false
137 predefined-parameters: |
138 GERRIT_BRANCH=$GERRIT_BRANCH
139 GERRIT_REFSPEC=$GERRIT_REFSPEC
140 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
141 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
142 node-parameters: false
143 kill-phase-on: FAILURE
147 condition: SUCCESSFUL
149 - name: 'fuel-verify-deploy-virtual-{stream-exp}'
150 current-parameters: false
151 predefined-parameters: |
152 GERRIT_BRANCH=$GERRIT_BRANCH
153 GERRIT_REFSPEC=$GERRIT_REFSPEC
154 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
155 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
156 node-parameters: false
157 kill-phase-on: FAILURE
161 condition: SUCCESSFUL
163 - name: 'fuel-verify-smoke-test-{stream-exp}'
164 current-parameters: false
165 predefined-parameters: |
166 GERRIT_BRANCH=$GERRIT_BRANCH
167 GERRIT_REFSPEC=$GERRIT_REFSPEC
168 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
169 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
170 node-parameters: false
171 kill-phase-on: FAILURE
175 name: 'fuel-verify-{phase}-{stream-exp}'
177 disabled: '{obj:disabled}'
187 use-build-blocker: true
189 - 'fuel-verify-deploy-.*'
190 - 'fuel-verify-test-.*'
194 - gerrit-trigger-scm:
195 credentials-id: '{ssh-credentials}'
196 refspec: '$GERRIT_REFSPEC'
197 choosing-strategy: 'gerrit'
200 - ssh-agent-credentials:
202 - '{ssh-credentials}'
211 - '{slave-label}-defaults'
212 - '{installer}-defaults'
213 - 'fuel-verify-defaults-exp':
214 gs-pathname: '{gs-pathname}'
217 - description-setter:
218 description: "Built on $NODE_NAME"
219 - '{project}-verify-{phase}-macro-exp'
220 #------------------------------------
222 #------------------------------------
224 name: 'fuel-verify-basic-macro-exp'
227 !include-raw: ./fuel-basic-exp.sh
230 name: 'fuel-verify-build-macro-exp'
233 !include-raw: ./fuel-build-exp.sh
235 !include-raw: ./fuel-workspace-cleanup.sh
238 name: 'fuel-verify-deploy-virtual-macro-exp'
241 !include-raw: ./fuel-deploy-exp.sh
244 name: 'fuel-verify-smoke-test-macro-exp'
247 !include-raw: ./fuel-smoke-test-exp.sh
248 #------------------------------------
250 #------------------------------------
252 name: 'fuel-verify-defaults-exp'
255 name: BUILD_DIRECTORY
256 default: $WORKSPACE/build_output
257 description: "Directory where the build artifact will be located upon the completion of the build."
259 name: CACHE_DIRECTORY
260 default: $HOME/opnfv/cache/$INSTALLER_TYPE
261 description: "Directory where the cache to be used during the build is located."
264 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
265 description: "URL to Google Storage."