Revision b687d5fa
Added by Renato Botelho almost 8 years ago
tools/build_snapshots.sh | ||
---|---|---|
216 | 216 |
" |
217 | 217 |
if [ -n "${POUDRIERE_SNAPSHOTS}" ]; then |
218 | 218 |
exec_and_update_status \ |
219 |
${BUILDER_ROOT}/build.sh --update-poudriere-ports \ |
|
220 |
|| exit $? |
|
221 |
|
|
222 |
exec_and_update_status \ |
|
223 |
${BUILDER_ROOT}/build.sh ${NO_UPLOAD} --update-pkg-repo \ |
|
224 |
|| exit $? |
|
219 |
${BUILDER_ROOT}/build.sh --update-poudriere-ports |
|
220 |
rc=$? |
|
221 |
|
|
222 |
if [ $rc -eq 0 ]; then |
|
223 |
exec_and_update_status \ |
|
224 |
${BUILDER_ROOT}/build.sh ${NO_UPLOAD} \ |
|
225 |
--update-pkg-repo |
|
226 |
rc=$? |
|
227 |
fi |
|
225 | 228 |
else |
226 | 229 |
exec_and_update_status \ |
227 |
${BUILDER_ROOT}/build.sh --clean-builder \ |
|
228 |
|| exit $? |
|
229 |
|
|
230 |
exec_and_update_status \ |
|
231 |
${BUILDER_ROOT}/build.sh ${NO_UPLOAD} --flash-size '2g 4g' \ |
|
232 |
--snapshots ${NO_IMAGES} \ |
|
233 |
|| exit $? |
|
230 |
${BUILDER_ROOT}/build.sh --clean-builder |
|
231 |
rc=$? |
|
232 |
|
|
233 |
if [ $rc -eq 0 ]; then |
|
234 |
exec_and_update_status \ |
|
235 |
${BUILDER_ROOT}/build.sh ${NO_UPLOAD} --flash-size \ |
|
236 |
'2g 4g' --snapshots \ |
|
237 |
${IMAGES} |
|
238 |
rc=$? |
|
239 |
fi |
|
234 | 240 |
fi |
235 | 241 |
IFS=${OIFS} |
236 | 242 |
|
237 | 243 |
if [ -z "${LOOPED_SNAPSHOTS}" ]; then |
238 | 244 |
# only one build required, exiting |
239 |
exit |
|
245 |
exit ${rc}
|
|
240 | 246 |
fi |
241 | 247 |
|
242 | 248 |
# Count some sheep or wait until a new commit turns up |
Also available in: Unified diff
Do not exit while running in loop mode