tag:help.appveyor.com,2012-11-13:/discussions/problems/28016-visual-studio-2019-build-image-only-contains-visual-studio-2017AppVeyor: Discussion 2020-10-20T21:03:17Ztag:help.appveyor.com,2012-11-13:Comment/485609792020-08-19T20:26:16Z2020-08-19T20:26:16ZVisual Studio 2019 build image only contains Visual Studio 2017<div><p>Hi James,</p>
<p>VS 2019 image doesn't have VS 2017 at all which means the build is not using VS 2019 image.</p>
<p>If you are configuring the build via <code>appveyor.yml</code> then UI settings are ignored and you need to specify the image in YAML:</p>
<pre>
<code>image: Visual Studio 2019</code>
</pre></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/485609792020-08-19T22:55:57Z2020-08-19T22:55:57ZVisual Studio 2019 build image only contains Visual Studio 2017<div><p>Hi,<br>
unfortunately we don't use the yml file at all. Just the Web configuration UI.</p>
<p>Exporting the yml file from the web interface gives us this:<br>
(with <code>image: Visual Studio 2019</code>)</p>
<pre>
<code>version: '{build}'
pull_requests:
do_not_increment_build_number: true
branches:
except:
- feature/22.1.0-DocGenAPI
- feature/3119-entitlements-update
- imageStorage
- feature/ci/octopusdeploy
- dev/database-maintenance
image: Visual Studio 2019
configuration: Debug
force_https_clone: true
clone_folder: C:\b
init:
- ps: >-
iex ((new-object net.webclient).DownloadString('https://raw.githubusercontent.com/appveyor/ci/master/scripts/enable-rdp.ps1'))
Set-TimeZone -Name "AUS Eastern Standard Time"
environment:
github_auth_token:
secure: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
sonarQube_project_backend: iApply_CORE_Backend
sonarQube_token:
secure: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
sonarQube_url: https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
sonarQube_project_frontend: iAppy_CORE_Frontend
octopus_url: https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
octopus_key:
secure: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
octopus_tenanttag: Hosting/DEMO-WEB-Shared
octopus_envname: CORE-DEV
docker_registry: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
docker_username: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
docker_password:
secure: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
octopus_server_start_url:
secure: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
services:
- mongodb
- iis
hosts:
ISOLUTIONS-MDB1: 127.0.0.1
isolutions-bsv1: 127.0.0.1
install:
- ps: '"C:\b\Build\BuildServer\PreInstall.ps1" | iex'
build_script:
- ps: '"C:\b\Build\BuildServer\CI_Build.ps1" | iex'
test_script:
- ps: '"C:\b\Build\BuildServer\RunTests.ps1" | iex'
deploy:
- provider: Octopus
push_packages: true
server: https://ixxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
api_key
secure: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
notifications:
- provider: Webhook
url: https://hooks.slack.com/services/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
method: POST
content_type: application/json
body: "{\n\"attachments\": [\n{{#passed}}{\n \"text\": \"Hi <@{{committerEmail}}>, \n\n<{{buildUrl}}|iApply {{projectName}} Build {{buildVersion}} has passed>\n<{{commitUrl}}|Commit {{commitId}} by {{commitAuthor}}>\n{{commitMessage}}\n\nKind regards,\nDevOps Team\",\n\"color\": \"#39e600\"\n}{{/passed}}\n{{#failed}}{\n \"text\": \"Hi <@{{committerEmail}}>, \n\nUnfortunately <{{buildUrl}}|iApply {{projectName}} Build {{buildVersion}} has failed>\n<{{commitUrl}}|Commit {{commitId}} by {{commitAuthor}}>\n{{commitMessage}}\n\n<{{buildUrl}}|Please click here to review more information about the failure.>\n\nKind regards,\nDevOps Team\",\n\"color\": \"#FF0000\"\n}{{/failed}}\n],\n \"username\": \"iApply CI Server\"\n}"
on_build_success: true
on_build_failure: true
on_build_status_changed: true
on_success:
- ps: '"C:\b\Build\BuildServer\BuildSuccess.ps1" | iex'
on_finish:
- ps: '"C:\b\Build\BuildServer\BuildFinish.ps1" | iex'</code>
</pre></div>james.pricetag:help.appveyor.com,2012-11-13:Comment/485609792020-08-19T22:57:15Z2020-08-19T23:04:35ZVisual Studio 2019 build image only contains Visual Studio 2017<div><p>I should note that I didn't configure this account originally, but I can't find any custom settings that would prevent us from switching images.</p>
<p>Of further interest, if I remote Desktop into the server while a build is running, Visual Studio 2015 and 2017 are all installed as well as some vs2012 tools (images attached). VS 2017 is at version 15.9.19.</p></div>james.pricetag:help.appveyor.com,2012-11-13:Comment/485609792020-08-19T23:05:11Z2020-08-19T23:05:11ZVisual Studio 2019 build image only contains Visual Studio 2017<div><p>(images attached)</p></div>james.pricetag:help.appveyor.com,2012-11-13:Comment/485609792020-08-20T00:04:44Z2020-08-20T00:04:44ZVisual Studio 2019 build image only contains Visual Studio 2017<div><p>Yep, it's definitely not a VS 2019 image. What do you have on "Events" tab of build results? There must've a record what cloud and image is used.</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/485609792020-08-20T02:02:00Z2020-08-20T02:02:00ZVisual Studio 2019 build image only contains Visual Studio 2017<div><p>Ahh yes, in "Job Events" it shows the following:<br>
** <code>Image found: Visual Studio 2017 (362)</code></p>
<pre>
<code>Timestamp Category Event
2020-08-20 9:47:42.747 Information Decommissioning worker: 367a2707e6984eae99b500f2f40a3dd2
2020-08-20 9:47:42.674 Warning Job has already completed
2020-08-20 9:47:42.674 Error Job has failed
2020-08-20 9:47:42.674 Information Decommission worker in cloud 154: 367a2707e6984eae99b500f2f40a3dd2
2020-08-20 9:19:45.217 Information Job has started
2020-08-20 9:19:41.870 Information Check worker status in 240 seconds
2020-08-20 9:19:41.479 Information Provisioning worker of type 'HyperV': 367a2707e6984eae99b500f2f40a3dd2
2020-08-20 9:19:41.371 Information Provision worker in cloud 154: 367a2707e6984eae99b500f2f40a3dd2
2020-08-20 9:19:41.355 Information Build cache configured on cloud level: lw-obj-cache-1
2020-08-20 9:19:41.355 Information Artifact storage configured on cloud level: azure-artifacts-westus-v2
2020-08-20 9:19:41.355 Information Job scheduled to cloud 154
2020-08-20 9:19:41.355 Information Fetching clouds with name/group 'pro-vs2017' for account 1
2020-08-20 9:19:41.355 Information Image found: Visual Studio 2017 (362)
2020-08-20 9:19:41.355 Information Started scheduling job
Account queue: 1 job(s)
Running jobs: 1 job(s)
Hosted jobs to run: 1 (2 max)
Hybrid jobs to run: 5 (5 max)</code>
</pre></div>james.pricetag:help.appveyor.com,2012-11-13:Comment/485609792020-08-20T02:05:50Z2020-08-20T02:05:50ZVisual Studio 2019 build image only contains Visual Studio 2017<div><p>Are you sure there is no <code>appveyor.yml</code> in the repo?</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/485609792020-08-20T02:43:29Z2020-08-20T02:43:29ZVisual Studio 2019 build image only contains Visual Studio 2017<div><p>argh, yes you're right... one of the dependencies we installed had it's own appveyor.yml file. This is why it stopped working at the same time recently.</p>
<p>It doesn't appear in out code-base as the folder it's in, is outside the developer source folders.</p>
<p>I've removed that file and will try again to see where we get to.</p>
<p>Thanks for pointing this out for me!</p></div>james.pricetag:help.appveyor.com,2012-11-13:Comment/485609792020-08-20T15:12:30Z2020-08-20T15:12:30ZVisual Studio 2019 build image only contains Visual Studio 2017<div><p>No problem, thanks for the update!</p></div>Feodor Fitsner