tag:help.appveyor.com,2012-11-13:/discussions/problems/385-setting-the-version-via-the-api-doesnt-update-the-environment-variableAppVeyor: Discussion 2018-10-19T08:16:34Ztag:help.appveyor.com,2012-11-13:Comment/332826872014-06-05T17:12:51Z2014-06-05T17:12:51ZSetting the version (via the API) doesn't update the environment variable<div><p>Good catch, will add that to issues! Thanks.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332826872014-08-06T11:13:51Z2014-08-06T11:13:51ZSetting the version (via the API) doesn't update the environment variable<div><p>Still doesn't assuming my incantation to create an artifact is
right:</p>
<pre>
<code>artifacts:
- path: publish
name: appveyor.$(APPVEYOR_VERSION_NUMBER)</code>
</pre></div>James Murphytag:help.appveyor.com,2012-11-13:Comment/332826872014-08-06T22:51:26Z2014-08-06T22:51:26ZSetting the version (via the API) doesn't update the environment variable<div><p>As a workaround you can just set this variable in the same place
where you call Build API, kind of:</p>
<pre>
<code>$env:APPVEYOR_VERSION_NUMBER = 'version'</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/332826872014-11-27T09:38:19Z2014-11-27T09:38:19ZSetting the version (via the API) doesn't update the environment variable<div><p>Yay, I see you have this working right now</p></div>James Murphy