unstable(message)
:
- like a warning: doesn't abort nor the current step, neither the entire build, code continues running
- current step is flagged in orange
- the build is flagged as UNSTABLE (if not already flagged as FAILED as build status can only get worse, not better)
- the step's log is not expanded by default in BlueOcean
error(message)
:
- like an exception, similar to
throw new Exception(message)
: aborts both the current step as well as the entire build (only code from current parallel steps continues until completion)