I am using the "execute program" action to call MSBuild to compile my solution. I cannot use the built-in MSBuild action for another unrelated issue.
I specify in the execute program action settings that "Program exit code must be equal to 0". When I get a compile error, MSBuild returns exit code 1 according to the FB logs("Program returned code : 1"). However, the execute program action is still marked as a success instead of failing.
Some additional setup in case its relevant: In the runtime tab, I am logging the program output to a variable. I am also logging the error lines to a separate variable via an output monitor. Would these affect whether FB can check the exit code?
I suppose I can check the length of the error variable from the output monitor after the execute program action runs to determine if there were any compile failures or not. But I would rather the execute program action itself be marked as failed if the exit code != 0.
Any insight would be appreciated.