tag:help.appveyor.com,2012-11-13:/discussions/questions/48672-how-to-override-environment-variables-from-rest-api-when-using-build-matrixAppVeyor: Discussion 2020-06-09T05:23:07Ztag:help.appveyor.com,2012-11-13:Comment/483916932020-06-09T04:30:55Z2020-06-09T04:30:55ZHow to override environment variables from REST API when using build matrix<div><p>Removing <code>VAR1</code> definition from the config should do the trick:</p>
<pre>
<code>image:
- macos
- macos-mojave
build_script:
- ps: echo "VAR1 = $env:VAR1"
for:
-
matrix:
only:
- image: macos
build_script:
- ps: echo "VAR1 for catalina = $env:VAR1"
-
matrix:
only:
- image: macos-mojave
build_script:
- ps: echo "VAR1 for mojave = $env:VAR1"</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/483916932020-06-09T05:22:54Z2020-06-09T05:22:54ZHow to override environment variables from REST API when using build matrix<div><p>Confirmed, thanks.</p>
<p>Umm, then we have to add some merging logic if we'd like to also have default values.<br>
OK, I think we can do it</p></div>TAMAGAWA Hiroko