build/audit: fail on vulnerabilities, but continue on nightly

This commit is contained in:
Franco Fichtner 2021-02-17 11:58:48 +01:00
parent b9b435215a
commit bc91f00cd5
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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