File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -67,14 +67,20 @@ RET=$?
6767section_end
6868
6969section_start " Archive downloaded site"
70+ set +e
7071cp -r localhost $ARTIFACTS /
72+ set -e
7173section_end
7274
7375section_start " Analyse failures"
74- # https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html
76+ # https://www.gnu.org/software/wget/manual/html_node/Exit-Status.html
7577# Exit code 4 is network error which we can ignore
76- # Exit code 8 can also be because of HTTP404 or 400
77- if [ $RET -ne 4 ] && [ $RET -ne 0 ] && [ $RET -ne 8 ]; then
78+ # Exit code 8 can also be because of HTTP 400 or 404
79+ if [ $RET -ne 0 ] && [ $RET -ne 4 ] && [ $RET -ne 8 ]; then
80+ echo " Server log"
81+ tail -n1000 /opt/domjude/domserver/webapp/var/log/prod.log
82+ section_end
83+
7884 exit $RET
7985fi
8086
You can’t perform that action at this time.
0 commit comments