Articles in this section

Is there a way to fail a build when one of the build hooks throws an error?

By default, a build will only be considered a failure if the last command in the hook fails.  To have any command failure cause the entire hook to fail, add set -e to the start of your build hook.

 

 hooks:
      build: |
          set -e

          (other build hook commands)
Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.