Can I force a failure when nothing is deployed?

Automated deployment for web applications and databases

Moderators: Mike Upton, justin.caldicott, Sean.newham, csmith, chirayu, DavidSimner, david.conlin

Can I force a failure when nothing is deployed?

Postby isme » Thu Dec 12, 2013 7:04 pm

Green means the deployment was successful, right?

Image

When TeamCity invokes the deployment, not necessarily.

Deployment Manager allows TeamCity to deploy to an environment with no configured targets, and reports success after deploying nothing.

The deployment summary shows that DM thinks it installed two packages.

Image

But the log shows that DM just skipped the installation entirely!

Image

2013-12-12 16:28:29 +00:00 INFO The deployment step 'Rhubarb.Rhubarb.Rhubarb version 1.0.8603.199' has not been configured to deploy to any targets in the environment 'INT-REVIEW'. This step will be skipped.


The dashboard says that "this task completed without a problem".

If there are no targets to accept my deployment, I'd say that's a problem!

Can I make the deployment fail when this happens?
Iain Elder, Skyscanner
isme
 
Posts: 81
Joined: Tue Jun 12, 2012 1:49 pm
Location: Edinburgh

Postby james.billings » Mon Dec 16, 2013 1:29 pm

Hi Iain!
I appreciate the confusion here- technically, a deployment succeeds if there's an absence of an error code returned, so if nothing attempted to deploy, then no errors are likely to be encountered and thus we treat that as 'success'- however I can see that it may be desirable for it to behave in the way you describe.

I can't think of any obvious way currently to get it to do this, so could you add it as a feature request over on our Uservoice site: clicky - we can then see if it's a popular suggestion.
james.billings
 
Posts: 1144
Joined: Wed Jun 16, 2010 11:10 am
Location: My desk.

Postby isme » Tue Dec 17, 2013 11:07 am

Thanks, James.

Vote here if you'd like to make DM fail in this situation:

http://redgate.uservoice.com/forums/176 ... nt-targets
Iain Elder, Skyscanner
isme
 
Posts: 81
Joined: Tue Jun 12, 2012 1:49 pm
Location: Edinburgh

Postby Sean.newham » Wed Jan 22, 2014 2:45 pm

Just to let you know, this is in DM. I think from last week, but definitely after this weeks update this afternoon/evening.
Sean.newham
 
Posts: 8
Joined: Fri Dec 06, 2013 6:02 pm


Return to Deployment Manager

Who is online

Users browsing this forum: No registered users and 0 guests