build/audit: fail on vulnerabilities, but continue on nightly
This commit is contained in:
parent
b9b435215a
commit
bc91f00cd5
|
@ -74,6 +74,7 @@ echo "done"
|
|||
if [ -f ${STAGEDIR}/report ]; then
|
||||
echo ">>> The following vulnerable pacckages exist:"
|
||||
sort -u ${STAGEDIR}/report
|
||||
exit 1
|
||||
else
|
||||
echo ">>> No vulnerable packages have been found."
|
||||
fi
|
||||
|
|
|
@ -110,6 +110,11 @@ for STAGE in ${STAGE2}; do
|
|||
echo ">>> Stage ${STAGE}-${_FLAVOUR} was aborted due to an error, last ${LINES} lines as follows:" > ${LOG}.err
|
||||
tail -n ${LINES} ${LOG} >> ${LOG}.err
|
||||
|
||||
if [ ${STAGE} = audit -o ${STAGE} = test ]; then
|
||||
# continue during these stages
|
||||
continue
|
||||
fi
|
||||
|
||||
___FLAVOUR=
|
||||
|
||||
for __FLAVOUR in ${FLAVOUR}; do
|
||||
|
|
Loading…
Reference in New Issue