Skipping deploy based on PreDeploy.ps1

ATimsonATimson Posts: 15 Bronze 1
edited June 4, 2014 9:51AM in Deployment Manager
Is there a way to utilize PreDeploy.ps1 to skip deployment, if we detect that it's not needed? Or would we need an entirely custom Deploy.ps1 to do that?

(The idea is that if our Windows service is being updated, we'd like to stop the service, deploy the new version, then restart the service. But if there's no change, we don't want to needlessly stop/restart the service.)

Comments

  • Hi,

    I don't think this is possible. If your script throws an exception, or exits with a non-zero exit code, then the deployment will stop, but it will be considered to have failed. There is no way to stop the deployment and still report success.

    Robin
    Robin Hellen
    Test Engineer
    DLM Automation
Sign In or Register to comment.