Red Gate forums :: View topic - Can I force a failure when nothing is deployed?
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
Deployment Manager
Deployment Manager forum

Can I force a failure when nothing is deployed?

Search in Deployment Manager forum
Post new topic   Reply to topic
Jump to:  
Author Message
isme



Joined: 12 Jun 2012
Posts: 74
Location: Edinburgh

PostPosted: Thu Dec 12, 2013 7:04 pm    Post subject: Can I force a failure when nothing is deployed? Reply with quote

Green means the deployment was successful, right?



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.



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



Quote:

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
Back to top
View user's profile Send private message
james.billings



Joined: 16 Jun 2010
Posts: 1116
Location: My desk.

PostPosted: Mon Dec 16, 2013 1:29 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
isme



Joined: 12 Jun 2012
Posts: 74
Location: Edinburgh

PostPosted: Tue Dec 17, 2013 11:07 am    Post subject: Reply with quote

Thanks, James.

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

http://redgate.uservoice.com/forums/176290-deployment-manager/suggestions/5214313-fail-when-there-are-no-deployment-targets
_________________
Iain Elder, Skyscanner
Back to top
View user's profile Send private message
Sean.newham



Joined: 06 Dec 2013
Posts: 3

PostPosted: Wed Jan 22, 2014 2:45 pm    Post subject: Reply with quote

Just to let you know, this is in DM. I think from last week, but definitely after this weeks update this afternoon/evening.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group