If the server fails to start when populating the SCC we should gracefully fail the build. Because the populate_scc.sh script sets the -e shell option, the shell will exit if any command returns non-zero, except in certain cases.
The populate_scc.sh script starts and stops the server in a compound expression using &&, which is one such case where a non-zero return from server start will be ignored.
Executing server start and server stop separately fixes this and has the desired behaviour; if the server fails to start execution will stop and the build will fail, rather than continuing on and leading to undefined behaviour.
If the server fails to start when populating the SCC we should gracefully fail the build. Because the populate_scc.sh script sets the -e shell option, the shell will exit if any command returns non-zero, except in certain cases.
The populate_scc.sh script starts and stops the server in a compound expression using &&, which is one such case where a non-zero return from
server start
will be ignored.Executing
server start
andserver stop
separately fixes this and has the desired behaviour; if the server fails to start execution will stop and the build will fail, rather than continuing on and leading to undefined behaviour.