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=$?
67
67
section_end
68
68
69
69
section_start " Archive downloaded site"
70
+ set +e
70
71
cp -r localhost $ARTIFACTS /
72
+ set -e
71
73
section_end
72
74
73
75
section_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
75
77
# 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
+
78
84
exit $RET
79
85
fi
80
86
You can’t perform that action at this time.
0 commit comments