commit | 4b8b2394feba8cafabf8b6d8f2d0e7327d034744 | [log] [tgz] |
---|---|---|
author | Joel Stanley <joel@jms.id.au> | Fri Feb 12 15:44:57 2016 +1030 |
committer | Joel Stanley <joel@jms.id.au> | Mon Feb 15 13:24:19 2016 +1030 |
tree | f755f5b5b0323c3e59585d3460720c93ad19bcc3 | |
parent | 01d1b3861808774c36b347fe68a83f82032cafa7 [diff] |
build-setup: Ensure we fail the build when a step fails Currently the build step can fail inside docker but we don't propogate that error up, so the Jenkins build will not be marked as failed. We set the following options: set -xeuo pipefail - bash trace output (-x) - failing when a step fails (-e) - failing on undefined variables (-u) - failing when a command in a pipe fails (-o pipefail) - the default behaviour is to use the exit code of the final command in the pipe. http://redsymbol.net/articles/unofficial-bash-strict-mode/ Thanks to Daniel Axtens <dja@axtens.net> for the extra suggestions. Signed-off-by: Joel Stanley <joel@jms.id.au> Reviewed-by: Daniel Axtens <dja@axtens.net>
Build script for CI jobs in Jenkins.