The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Treat a Task failure as a warning

Michael
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 15, 2012

I have a series of Tasks associated with a Job. And I have a series of Jobs associated with a Plan.

When a build kicks off for the Plan should one of the Tasks in a Job fail I would like to have the option to treat the failure as a warning, display the Build as yellow on the dashboard, and have Bamboo continue on to the next Job.

Possible?

Real world example -

  1. Job to build .NET solution.
  2. Job to run unit tests.
  3. Job to deploy to development server.

If #2 fails, I want to know by looking at the Dashboard but I also want Bamboo to continue on to #3.

2 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Rick Herrick
April 10, 2013

We have a situation with a similar requirement albeit a different context. As part of the deployment process for our app, we want to undeploy the app from a remote Tomcat. This frees up database connections so we can drop and re-create the app database.

I have two alternatives here:

  • Stop Tomcat itself
  • Stop and undeploy the app via the Tomcat manager app

I've been unable to stop and start Tomcat via ssh because I can't get sudo access that way. I can undeploy the app via the manager app assuming that the app is installed. But if it's not installed (which can happen when there's a problem with the code or app configuration) that whole task fails and the build fails with it.

But frankly I don't CARE! If it fails to undeploy, that means that the app's not even there and therefore not locking database sessions and I can proceed. But to Bamboo it seems all failures are created equally and require the entire build process to abort. That seems very inflexible and frankly useless to me.

I see it's been a year since the original inquiry with no Atlassian response. So does that mean I'm hosed?

0 votes
PinoS
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 2, 2012

Why can't we make a task no fail the build but maybe add a badge or something...

Also, if a project has no tests why does it fail? For example, when a project starts or at some point they are disabled... doesn't make sense to fail build or to change the plan.

TAGS
AUG Leaders

Atlassian Community Events