We have deployment plans (NOT BUILD PLANS!) that a user may want to cancel for whatever reason. When the user presses the cancel button, there doesn't appear any way to capture that fact during the Deployment process. We'd like to then do something after a user cancels a deployment. For background, we have a custom-made deployment mechanism that handles deployments asynchronously. Namely:
The problem is that if the end user clicks, in Bamboo, "cancel", we'd like to then send a "cancel deployment" command to the deployment mechanism (simple REST call does the trick). However, I can't seem to find anything like "final" tasks in the Deployment stack, or any variables that suggest that the deployment was manually cancelled. Is there a way to capture that some how? I can't figure out what Bamboo does to the active running tasks on the Deployment side (issue a kill -N signal that I could trap in a script?) when you cancel an active deployment.
Note - this is for DEPLOYMENT PLANS, not BUILD PLANS.
In a deployment project you should see a line that says Final Tasks and you can drag items under the Final Task to make sure they run even if the other tasks failed:
In regards to who completed the plan, if you view the full deployment log, you can search for "Request to Stop."
OK, but how would I use that programmatically? I can always manually observe a log file to see if "Request to Stop" happened. Are you saying that I should create some kind of parser that runs that does a grep on the output log (wherever it's stored locally) for a given deployment, and then execute on that? I can't find a "parse deployment log file" task.
Bamboo 5.9 will no longer be supported after June 12, 2017. What does this mean? As part of our End of Life policy, Atlassian supports major versions for two years after the first major iteratio...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot