tag:help.appveyor.com,2012-11-13:/discussions/questions/3424-confusion-about-how-to-change-to-osAppVeyor: Discussion 2018-08-25T02:15:36Ztag:help.appveyor.com,2012-11-13:Comment/421299822017-03-10T17:32:12Z2017-03-10T17:46:08ZConfusion about how to change to OS<div><p>I need to run [our]( browser based Jasmine test suite on Windows 10, in order to test in MS edge. The default image, <a href="https://www.appveyor.com/docs/installed-software/#operating-system">Windows Server 2012 R2 (x64)</a>, doesn't support UWP based software such as the Edge browser.</p>
<p>I'm using Karma to kick off the tests and act as a server for the test page. Karma uses launchers to start different browsers and I use <a href="https://github.com/nickmccurdy/karma-edge-launcher">karma-edge-launcher</a> which in turn uses <a href="https://github.com/MicrosoftEdge/edge-launcher">edge-launcher</a>. You can see that <a href="https://ci.appveyor.com/project/dotnetCarpenter/svg-js/build/1.0.21#L78">edge-launcher fails to find <code>MicrosoftEdge.exe</code> in our test log</a>.</p>
<p>I've been trying to change to a Windows 10 image by specifying <code>os</code> and <code>image</code>. The documentation says <code>image</code>.</p>
<pre>
<code>#---------------------------------#
# environment configuration #
#---------------------------------#
# Build worker image (VM template)
image: Visual Studio 2015</code>
</pre>
<p><em>I've read <code>os</code> on some doc page but I can't find it - perhaps you changed it?</em></p>
<p>I've read somewhere that using <code>Visual Studio 2015</code> means that I can run UWP applications and my guess is that it switches me to Windows Server 2016.</p>
<p>But after reading <a href="https://github.com/nickmccurdy/karma-edge-launcher/issues/14">https://github.com/nickmccurdy/karma-edge-launcher/issues/14</a> and <a href="https://github.com/appveyor/ci/issues/1150">https://github.com/appveyor/ci/issues/1150</a>, I think we need to get bumped up to Windows Server 2016. Is this possible?</p>
<p>Cheers, Jon</p></div>jon.ronnenbergtag:help.appveyor.com,2012-11-13:Comment/421299822017-03-10T17:35:38Z2017-03-10T17:35:39ZConfusion about how to change to OS<div><p>I found the page that says to use <code>os</code>. <a href="https://www.appveyor.com/updates/">https://www.appveyor.com/updates/</a> Perhaps you should update it.</p></div>jon.ronnenbergtag:help.appveyor.com,2012-11-13:Comment/421299822017-03-10T17:38:33Z2017-03-10T17:38:37ZConfusion about how to change to OS<div><p>Here is another page that suggest <code>os</code>: <a href="https://www.appveyor.com/docs/installed-software/#visual-studio-2015">https://www.appveyor.com/docs/installed-software/#visual-studio-2015</a></p></div>jon.ronnenbergtag:help.appveyor.com,2012-11-13:Comment/421299822017-03-10T20:28:31Z2017-03-10T20:28:31ZConfusion about how to change to OS<div><p>Hello Jon,</p>
<p>Please <code>image: Visual Studio 2017</code>. This is latest image which is based on Windows Server 2016.</p>
<p>Please note however that build start time will be longer because it runs on Google cloud engine, where VM provisioning takes more time than on our own infrastructure. Will will migrate <code>Visual Studio 2017</code> to our own infrastructure soon.</p>
<p>Thanks,<br>
Ilya.</p></div>Ilya Finkelshteyntag:help.appveyor.com,2012-11-13:Comment/421299822017-03-12T17:47:34Z2017-03-12T18:09:23ZConfusion about how to change to OS<div><p>Thanks Ilya.</p>
<p>Is there anything in the log that indicate which image it's run on do I just print <code>ps: Write-Host (Get-WmiObject -class Win32_OperatingSystem).Caption</code>?</p></div>jon.ronnenbergtag:help.appveyor.com,2012-11-13:Comment/421299822017-03-12T18:32:28Z2017-03-12T18:32:28ZConfusion about how to change to OS<div><p>It seems that Edge is not install on Microsoft Windows Server 2016 Datacenter.</p>
<pre>
<code>12 03 2017 18:01:54.602:ERROR [launcher]: Killing Edge process failed.
Error: Command failed: taskkill /t /f /im MicrosoftEdge.exe
ERROR: The process "MicrosoftEdge.exe" not found.
12 03 2017 18:01:54.602:ERROR [launcher]: Cannot start Edge</code>
</pre>
<p><em><a href="https://ci.appveyor.com/project/dotnetCarpenter/svg-js">https://ci.appveyor.com/project/dotnetCarpenter/svg-js</a></em></p>
<p>Can I install it?</p></div>jon.ronnenbergtag:help.appveyor.com,2012-11-13:Comment/421299822017-03-12T20:11:50Z2017-03-12T20:11:50ZConfusion about how to change to OS<div><p>Suddenly <code>- appveyor-retry npm install</code> stop working. Is <code>appveyor-retry</code> not available on the Visual Studio 2017 image?</p>
<p>See <a href="https://ci.appveyor.com/project/dotnetCarpenter/svg-js/build/1.0.33">https://ci.appveyor.com/project/dotnetCarpenter/svg-js/build/1.0.33</a></p></div>jon.ronnenbergtag:help.appveyor.com,2012-11-13:Comment/421299822017-03-12T20:27:08Z2017-03-12T20:27:08ZConfusion about how to change to OS<div><p>I'm giving up trying to install Microsoft Edge without help. I can not find anywhere I can download it and it doesn't seem to be installed on Windows Server 2016 Datacenter.</p>
<p>Please advice.</p></div>jon.ronnenbergtag:help.appveyor.com,2012-11-13:Comment/421299822017-03-12T21:16:59Z2017-03-12T21:16:59ZConfusion about how to change to OS<div><p>Unfortunately, Edge is not available on Windows Server 2016: <a href="https://technet.microsoft.com/en-us/itpro/microsoft-edge/hardware-and-software-requirements">https://technet.microsoft.com/en-us/itpro/microsoft-edge/hardware-a...</a></p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/421299822017-03-13T17:30:04Z2017-03-13T17:30:04ZConfusion about how to change to OS<div><p>By <a href="https://github.com/svgdotjs/svg.js/blob/a0f07a4c326469547897122f4a1d6491423ff03c/appveyor.yml#L9">refreshenv</a> you are removing <code>appveyor-retry</code> from PATH.</p></div>Feodor Fitsner