Options

Can I force a failure when nothing is deployed?

ismeisme Posts: 119
edited January 22, 2014 8:45AM in Deployment Manager
Green means the deployment was successful, right?

ZQyxVEl.png

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.

eK4OsEz.png

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

JYg1m6t.png
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

Comments

  • Options
    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.
    Systems Software Engineer

    Redgate Software

  • Options
    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
  • Options
    Just to let you know, this is in DM. I think from last week, but definitely after this weeks update this afternoon/evening.
Sign In or Register to comment.