Is there a way to pause automatic deployments to an environment?

ben's Avatar

ben

06 Feb, 2018 11:53 PM

I want to be able to pause all automatic deployments to our staging server during testing (at the moment all valid builds are deployed straight to testing). This is for when we're running a testing cycle and don't want dev happening on a future release to be deployed during testing.

I've searched and looked around but haven't been able to find anything on it.

  1. 1 Posted by Ilya Finkelshte... on 07 Feb, 2018 12:01 AM

    Ilya Finkelshteyn's Avatar

    Please check https://www.appveyor.com/docs/deployment/#conditional-deployment. If "dev happening on a future release" is using another branch, this should be very straightforward. Otherwise you might need to introduce some special environment variable to use as a deployment condition.

  2. 2 Posted by ben on 07 Feb, 2018 12:03 AM

    ben's Avatar

    Thanks Ilya. I think I should set it so only develop and release branches are deployed to staging, which will solve my issue.

  3. ben closed this discussion on 07 Feb, 2018 12:03 AM.

  4. ben re-opened this discussion on 07 Feb, 2018 12:20 AM

  5. 3 Posted by ben on 07 Feb, 2018 12:26 AM

    ben's Avatar

    Is there a way that I can specify multiple branches? Ideally I want to specify 'develop' and 'release/*' so commits to develop or any release branch (we append them with the release number).

    I've tried a few things but to no avail.

  6. 4 Posted by Ilya Finkelshte... on 07 Feb, 2018 01:36 AM

    Ilya Finkelshteyn's Avatar
  7. 5 Posted by ben on 07 Feb, 2018 03:00 AM

    ben's Avatar

    Perfect thank you. Everything is working perfectly.

  8. ben closed this discussion on 07 Feb, 2018 03:00 AM.

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

Keyboard shortcuts

Generic

? 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