tag:help.appveyor.com,2012-11-13:/discussions/problems/16425-build-process-doesnt-have-access-to-modified-pathAppVeyor: Discussion 2018-11-10T21:00:31Ztag:help.appveyor.com,2012-11-13:Comment/460226422018-09-04T22:34:05Z2018-09-04T22:34:05ZBuild process doesn't have access to modified PATH<div><p>Setting the path that way only works for that session. To set in on the machine level try<br></p>
<pre>
<code>- ps: [Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";C:\Solidity", "Machine")</code>
</pre>
in place of the <code>SET PATH</code> command you now have.</div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/460226422018-09-05T10:53:35Z2018-09-05T10:53:35ZBuild process doesn't have access to modified PATH<div><ol>
<li>This code doesn't work because it leads to YML parsing error (see <a href="https://ci.appveyor.com/project/Pzixel/solidity-roslyn/build/1.0.17">https://ci.appveyor.com/project/Pzixel/solidity-roslyn/build/1.0.17</a> )<br></li>
<li>If I move it to the powershell script it still not work (see <a href="https://ci.appveyor.com/project/Pzixel/solidity-roslyn/build/0.1.18">https://ci.appveyor.com/project/Pzixel/solidity-roslyn/build/0.1.18</a> )</li>
</ol></div>pzixeltag:help.appveyor.com,2012-11-13:Comment/460226422018-09-05T17:04:26Z2018-09-05T17:04:26ZBuild process doesn't have access to modified PATH<div><p>Can you try adding this to the top of your appveyor.yml <code>install:</code> section<br></p>
<pre>
<code> - ps: |
[Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";C:\Solidity", "Machine")
- ps: Restart-Computer
- ps: Start-Sleep -s 10</code>
</pre></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/460226422018-09-07T09:23:10Z2018-09-07T09:23:10ZBuild process doesn't have access to modified PATH<div><p>Well, it just hanged and timeouted: <a href="https://ci.appveyor.com/project/Pzixel/solidity-roslyn/build/0.1.32">https://ci.appveyor.com/project/Pzixel/solidity-roslyn/build/0.1.32</a></p></div>pzixeltag:help.appveyor.com,2012-11-13:Comment/460226422018-09-07T16:46:21Z2018-09-07T16:46:21ZBuild process doesn't have access to modified PATH<div><p>Can you try also adding start-sleep before restart</p>
<pre>
<code> - ps: |
[Environment]::SetEnvironmentVariable("PATH", $env:PATH + ";C:\Solidity", "Machine")
- ps: Start-Sleep -s 10
- ps: Restart-Computer
- ps: Start-Sleep -s 10</code>
</pre></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/460226422018-09-09T20:07:10Z2018-09-09T20:07:22ZBuild process doesn't have access to modified PATH<div><p>Build hangs after reboot anyway.</p></div>pzixeltag:help.appveyor.com,2012-11-13:Comment/460226422018-09-10T06:04:33Z2018-09-10T06:04:33ZBuild process doesn't have access to modified PATH<div><p>Can you share some more details (configuration file, build log, etc.)?<br>
Below are three builds in which I had no trouble restarting the build machine.<br>
<a href="https://ci.appveyor.com/project/britzkopf/projecta/build/1.0.157">https://ci.appveyor.com/project/britzkopf/projecta/build/1.0.157</a><br>
<a href="https://ci.appveyor.com/project/britzkopf/projecta/build/1.0.158">https://ci.appveyor.com/project/britzkopf/projecta/build/1.0.158</a><br>
<a href="https://ci.appveyor.com/project/britzkopf/projecta/build/1.0.159">https://ci.appveyor.com/project/britzkopf/projecta/build/1.0.159</a></p></div>Owen McDonnell