Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/jobs/webstandard.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,20 @@ RET=$?
section_end

section_start "Archive downloaded site"
set +e
cp -r localhost $ARTIFACTS/
set -e
section_end

section_start "Analyse failures"
#https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html
# https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html
# Exit code 4 is network error which we can ignore
# Exit code 8 can also be because of HTTP404 or 400
if [ $RET -ne 4 ] && [ $RET -ne 0 ] && [ $RET -ne 8 ]; then
# Exit code 8 can also be because of HTTP 400 or 404
if [ $RET -ne 0 ] && [ $RET -ne 4 ] && [ $RET -ne 8 ]; then
echo "Server log"
tail -n1000 /opt/domjude/domserver/webapp/var/log/prod.log
section_end

exit $RET
fi

Expand Down
Loading