I am using Bamboo Server 7.2.3.
Whenever I use WINDOWS_POWER_SHELL as the interpreter for scripts that I am running (either in the UI, or in YAML), I do not get a failed job / task when the script fails.
Example YAML (does not fail the build):
- script:
interpreter: WINDOWS_POWER_SHELL
scripts:
- <FAILING COMMAND>I would expect the above code to fail the job that is running this script task, but it does not.
The following code, however, DOES fail the build- notice that I am using the native script interpreter, BINSH_OR_CMDEXE.
Example YAML (fails correctly):
<span>-</span> <span>script:</span>
<span>interpreter:</span> <span>BINSH_OR_CMDEXE</span>
<span>scripts:</span>
<span>-</span> <span><FAILING</span> <span>COMMAND></span>
This is pretty annoying, and I am wondering if I am crazy, or if there is a known bug in bamboo that would speak to this, or even hopefully a solution to this problem.