Issue Details (XML | Word | Printable)

Key: BPBC-15
Type: New Feature New Feature
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: jonathan doklovic
Reporter: Andy Martin
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Bamboo Pre/Post-Build Command plugin

Request ability to fail build if pre-command returns non-zero exit code

Created: 12/Aug/08 09:59 AM   Updated: 14/Aug/08 01:50 PM
Component/s: prebuild
Affects Version/s: None
Fix Version/s: 2.1.0

Time Tracking:
Not Specified

Labels:


 Description  « Hide
It would be very helpful to have the option to fail and abort the build if the pre-command fails as indicated by a non-zero exit code.

 All   Comments   Work Log   Change History   FishEye   Crucible   Builds      Sort Order: Ascending order - Click to sort in descending order
jonathan doklovic added a comment - 13/Aug/08 11:11 AM
currently both the pre and post commands run in a separate thread so they do not affect the build processing.
To fail the build, the pre command would have to block until finished.

I'm not sure this is the best idea as a default since currently the pre-command could be used to execute a long running process and not affect the build processing.

I could possibly add an option to run it in the main agent thread and if that's enabled give an option to fail the build on a bad return code. Not sure if this will be confusing or not.

Suggestions?


jonathan doklovic added a comment - 14/Aug/08 01:50 PM
Added the ability to specify if the command should run in a new thread or not.
If it does not run in a new thread, you can also specify if it should fail the build if exit code != 0