Environment provider settings on appveyor.yml

James Toyer's Avatar

James Toyer

13 Nov, 2014 04:43 PM

I use environments to deploy applications via the agent. I wanted to know if it is possible to set provider specific settings via the appveyor.yml. For example, I'd like to set an artifact to be deployed. What I'd like to be able to do is something like the following.

  - provider: Environment
    name: Testing
       branch: master
       MyApp.deploy_site: true
       MyApp.site_name: My site name

The documentation is a little vague in this area

  1. Support Staff 1 Posted by Feodor Fitsner on 13 Nov, 2014 05:30 PM

    Feodor Fitsner's Avatar

    I see. Well, you can't specify provider settings in YML, but you can set their values through environment variables.

    Say, you can have configured on environment properties screen the following setting:

    MyApp.site_name           $(site_name)

    where $(site_name) is the name of environment variable that could be defined a) during the build or b) in "Environment variables" section of environment (default value).

    For example:

      site_name: My site name
      - provider: Environment
        name: Testing
           branch: master

    This way when Environment deployment is called all environment variables from build context will be passed to deployment provider and available for substitution.

    Let me know if you have any questions.

  2. James Toyer closed this discussion on 10 Feb, 2015 02:13 PM.

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


06 Jun, 2024 02:12 PM
06 Jun, 2024 03:49 AM
04 Jun, 2024 03:53 AM
30 May, 2024 04:03 PM
27 May, 2024 02:06 AM
20 May, 2024 09:52 PM