Closed Horcrux7 closed 6 years ago
We can reproduce the same error also with version 2.18 and 2.17. With version 2.16 it work. It is not a regression in the latest version 2.19. Seems that some things in our server build environment is outdated. The question is what?
Starting from 2.17 we use vswhere from https://github.com/Microsoft/vswhere in order to work with the latest manifold location
Can you try to see if you can get the path from that tool in your Jenkins server?
I have try to execute vswhere manually on our build system. It returns only the logo. If I call it with -legacy then I receive:
vswhere -legacy
Visual Studio Locator version 2.3.7+gfb01ddad81
Copyright (C) Microsoft Corporation. All rights reserved.
instanceId: VisualStudio.14.0
installationPath: C:\Program Files (x86)\Microsoft Visual Studio 14.0\
installationVersion: 14.0
Perhaps you have version set in your build.gradle manifold section? That could be a bug indeed
Yes, we use the version property because without not all of our old projects builds.
Sorry, I have oversee you question because I have hold the browser open.
Can you try to see if you can get the path from that tool in your Jenkins server?
We does not have vswhere on this docker image. I can't find it. I think it exist first since VS 2015.
If you think that VS 2014 is to old to support it in the current version then this is ok. We want modernize our infrastructure. That I evaluate VS 2017. A better error message with a hint to an old plugin version would be nice.
After looking in your linked source code:
line 34: def msbuildDir = new File(location, 'MSBuild')
I think it is a good idea to check if the directory exists. If the directory does not exists because it is an error message then MsBuild directory will be search from the registry. This should work with older versions.
I have try to execute vswhere manually on our build system. It returns only the logo. If I call it with -legacy then I receive:
likely we should add -legacy
when invoking vswhere with version <= 14.0
With the new version 2.19 of the plugin on our build system we receive:
.....