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:
77 - patchset-created-event:
78 exclude-drafts: 'false'
79 exclude-trivial-rebase: 'false'
80 exclude-no-code-change: 'false'
81 - draft-published-event
82 - comment-added-contains-event:
83 comment-contains-value: 'recheck'
84 - comment-added-contains-event:
85 comment-contains-value: 'reverify'
87 - project-compare-type: 'ANT'
88 project-pattern: '{project}'
90 - branch-compare-type: 'ANT'
91 branch-pattern: '**/{branch}'
102 readable-message: true
109 - 'opnfv-build-defaults'
110 - 'fuel-verify-defaults-exp':
111 gs-pathname: '{gs-pathname}'
114 - description-setter:
115 description: "Built on $NODE_NAME"
118 condition: SUCCESSFUL
120 - name: 'fuel-verify-basic-{stream-exp}'
121 current-parameters: false
122 predefined-parameters: |
123 GERRIT_BRANCH=$GERRIT_BRANCH
124 GERRIT_REFSPEC=$GERRIT_REFSPEC
125 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
126 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
127 node-parameters: false
128 kill-phase-on: FAILURE
132 condition: SUCCESSFUL
134 - name: 'fuel-verify-build-{stream-exp}'
135 current-parameters: false
136 predefined-parameters: |
137 GERRIT_BRANCH=$GERRIT_BRANCH
138 GERRIT_REFSPEC=$GERRIT_REFSPEC
139 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
140 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
141 node-parameters: false
142 kill-phase-on: FAILURE
146 condition: SUCCESSFUL
148 - name: 'fuel-verify-deploy-virtual-{stream-exp}'
149 current-parameters: false
150 predefined-parameters: |
151 GERRIT_BRANCH=$GERRIT_BRANCH
152 GERRIT_REFSPEC=$GERRIT_REFSPEC
153 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
154 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
155 node-parameters: false
156 kill-phase-on: FAILURE
160 condition: SUCCESSFUL
162 - name: 'fuel-verify-smoke-test-{stream-exp}'
163 current-parameters: false
164 predefined-parameters: |
165 GERRIT_BRANCH=$GERRIT_BRANCH
166 GERRIT_REFSPEC=$GERRIT_REFSPEC
167 GERRIT_CHANGE_NUMBER=$GERRIT_CHANGE_NUMBER
168 GERRIT_CHANGE_COMMIT_MESSAGE=$GERRIT_CHANGE_COMMIT_MESSAGE
169 node-parameters: false
170 kill-phase-on: FAILURE
174 name: 'fuel-verify-{phase}-{stream-exp}'
176 disabled: '{obj:disabled}'
186 use-build-blocker: true
188 - 'fuel-verify-deploy-.*'
189 - 'fuel-verify-test-.*'
193 - gerrit-trigger-scm:
194 credentials-id: '{ssh-credentials}'
195 refspec: '$GERRIT_REFSPEC'
196 choosing-strategy: 'gerrit'
199 - ssh-agent-credentials:
201 - '{ssh-credentials}'
210 - '{slave-label}-defaults'
211 - '{installer}-defaults'
212 - 'fuel-verify-defaults-exp':
213 gs-pathname: '{gs-pathname}'
216 - description-setter:
217 description: "Built on $NODE_NAME"
218 - '{project}-verify-{phase}-macro-exp'
219 #------------------------------------
221 #------------------------------------
223 name: 'fuel-verify-basic-macro-exp'
226 !include-raw: ./fuel-basic-exp.sh
229 name: 'fuel-verify-build-macro-exp'
232 !include-raw: ./fuel-build-exp.sh
234 !include-raw: ./fuel-workspace-cleanup.sh
237 name: 'fuel-verify-deploy-virtual-macro-exp'
240 !include-raw: ./fuel-deploy-exp.sh
243 name: 'fuel-verify-smoke-test-macro-exp'
246 !include-raw: ./fuel-smoke-test-exp.sh
247 #------------------------------------
249 #------------------------------------
251 name: 'fuel-verify-defaults-exp'
254 name: BUILD_DIRECTORY
255 default: $WORKSPACE/build_output
256 description: "Directory where the build artifact will be located upon the completion of the build."
258 name: CACHE_DIRECTORY
259 default: $HOME/opnfv/cache/$INSTALLER_TYPE
260 description: "Directory where the cache to be used during the build is located."
263 default: artifacts.opnfv.org/$PROJECT{gs-pathname}
264 description: "URL to Google Storage."