tag:help.appveyor.com,2012-11-13:/discussions/problems/10283-artifact-setting-from-yml-file-being-ignoredAppVeyor: Discussion 2018-08-25T02:25:32Ztag:help.appveyor.com,2012-11-13:Comment/442335812017-12-06T09:05:31Z2017-12-06T09:05:32Z"artifact" setting from yml file being ignored<div><p>Hi,</p>
<p>The project i am trying to deploy has multiple web projects and the <code>build.publish_wap</code> setting so nicely creates an artifact for each web project</p>
<p>I my <code>appveryor.yml</code> i have the following deploy settings and it seems the <code>deploy.artifact</code> setting is being ignored?<br></p>
<pre>
<code> deploy:
- provider: Environment
name: <name of environment>
artifact: /My.(Shared|ProjectWithArea).Web/</code>
</pre>
* If i type the regex directly in the Environments settings it works. * If i type a variable in the Environments settings, lets say <code>$(artifact_pattern)</code>, and replace <code>artifact:</code> with <code>artifact_pattern:</code> in the above example it works aswell.</div>Nikolaj Carøetag:help.appveyor.com,2012-11-13:Comment/442335812017-12-06T18:31:36Z2017-12-06T18:31:36Z"artifact" setting from yml file being ignored<div><p>Nikolaj,</p>
<p>Syntax you are trying to use (with artifact name in YAML when using Environment deployment) is not supported.I believe that passing <code>$(artifact_pattern)</code> variable is the best way to keep more control in YAML in your case for now.</p>
<p>I admit that sometime it is difficult to understand what is right YAML syntax. So when in doubt, you can use UI to setup some setting and then press <code>Export YAML</code> to get proper YAML sample. However not all setting are exposed in UI, so feel free to ping us when needed too :)</p>
<p>Ilya.</p></div>Ilya Finkelshteyn