I would like to know if you can programmatically change the status of a build from success to fail.
Here's my situation:
I have 2 builds: Build A and Build B
Build A runs and is successful.
Build B is triggered by the success of Build A
The compile of Build B succeeds but some tests fail, mainly due to changes in the dependent artifacts created by Build A.
I want to change the status of Build A to fail and include a message explaining why. Can this be done?
If this can't be done, could i somehow insert additional comments into the log tab within the related Build A build? i.e. a warning saying that changes made have broken something in dependent builds.