Conditional deployment

lair's Avatar


26 Jun, 2015 09:47 AM

I have a somewhat complicated deployment process, which includes pre-deployment script, deployment provider, and post-deployment script. I want all of this to happen only when build is triggered from master so that only stable version would get deployed.

As far as I can see, now I can only set deployment condition only for specific deployment provider (but, for example, when build is triggered by Pull Request, whole deployment is skipped), so I had to wrap all the pre/post deployment scripts in If($Env:APPVEYOR_REPO_BRANCH -eq 'master')

I think that it'd be handy to have a deployment-tab-wide condition that'd apply to all deployment providers and scripts.

  1. Support Staff 1 Posted by Feodor Fitsner on 27 Jun, 2015 01:00 AM

    Feodor Fitsner's Avatar

    That makes sense. Thanks for the suggestion!

  2. 2 Posted by lair on 28 Jun, 2015 11:20 AM

    lair's Avatar

    Is there any place that we can watch to know when/if this would be implemented?

  3. Support Staff 3 Posted by Feodor Fitsner on 29 Jun, 2015 05:07 AM

    Feodor Fitsner's Avatar

    You can file an issue here:

  4. 4 Posted by lair on 29 Jun, 2015 08:26 AM

    lair's Avatar

    Oh, thank you for the direction.

  5. lair closed this discussion on 29 Jun, 2015 08:29 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac