Environment deployment, how to specify artifact

trygve's Avatar

trygve

13 Feb, 2017 10:40 AM

Solution has multiple web projects. I want to deploy a specific project (artifact) with "Environment" deployment. How do I specify which artifact to deploy? Just add "artifact: name_of_artifact" to "on:" section of Environment deployment in YAML?

  1. 1 Posted by Ilya Finkelshte... on 13 Feb, 2017 06:25 PM

    Ilya Finkelshteyn's Avatar

    Hello,

    You have to set artifact name in Artifact to deploy which is WebDeploy settings in Environment UI. If you need more control from YAML, you can set some variable like $(artifactName) in Artifact to deploy, and then in appveyor.yml do the following:

    deploy:
    - provider: Environment
      name: MyWebDeploy
      artifactName: MyArtifactName
    

    You proposal with on section will not work there, this is conditions section, which mean that deployment will start when value of variable artifact is name_of_artifact.

    Ilya.

  2. trygve closed this discussion on 01 Apr, 2017 07:27 PM.

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