JetBrains / teamcity-dotnet-plugin

TeamCity plugin for .NET projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't install the Dotnet Integration Tool after installing plugin

davestephens opened this issue · comments

After installing the newest version of the plugin (SNAPSHOT-20170912130407) onto TeamCity 2017.1, it then asks you to select (or install if you haven't already) the "Dotnet Integration Tool". My TeamCity server doesn't have internet access so I manually uploaded the nuget package as directed.

When selecting this uploaded version as the "Dotnet Integration Tool", in my build log I get:

[10:21:12]	Step 3/3: Build (.NET)
[10:21:12]	[Step 3/3] Path "C:\buildagent\tools\TeamCity.Dotnet.Integration.1.0.31-beta\msbuild15\TeamCity.MSBuild.Logger.dll" to MSBuild logger was not found

If I look on the build agent, the file it wants is at C:\buildagent\tools\TeamCity.Dotnet.Integration.1.0.31-beta\build\_common\msbuild15, which presumably is because TeamCity is unpacking the nupkg like a zip file onto the build agents, rather than "installing" it into the right place.

Am I doing something wrong here, or is there a bug in the way the nupkg is handled by the plugin? Thanks in advance for any help!

@davestephens thanx for info, fixed

That's awesome, thank you.

Any idea when this will be released and available for install?

I've done, try downloading it now

OK, so I've installed the plugin. It then lets me upload the TeamCity.dotnet.integration nupkg, and it installs and unpacks correctly to build agents. Log colouring also works as expected, so thanks for that!

HOWEVER....:)

After installing, these directories appeared in the build agent tools directory - which also seem like unzipped nuget packages as described earlier in this issue:

image

I also see these in the tools listed in the TeamCity server tools page:

image

If I try and select them as the integration tool in a build configuration, it just defaults back to the "proper" installed version when hitting save.

image

So, your fix works for the integration package, but seems to have introduced some extra weirdness during installation.

Thanks in advance!
Dave

@davestephens did you manually rename .nupkg files before uploading? I mean that the newest version of TeamCity.Dotnet.Integration is 1.0.31-beta

The only integration package I installed was 1.0.31-beta, and that works fine.

The other three appeared after I installed the teamcity-dotnet-plugin and restarted TeamCity.

And what do they contain?

It is very strange. Could you please remove them all and upload teamcity.dotnet.integration.1.0.31-beta.nupkg again?

Each one has a skeleton unzipped nupkg (similar to as I described in the first comment in the issue) but the actual "thing" it is a package of appears to be nuget.exe - so each one is a different nuget version that we have installed on the server....another screenshot :)

image

Only just noticed this btw, sorry for not mentioning earlier!

@davestephens thanx, I will think :)

@davestephens could you try installing this version and if it is possible I would like to look at file teamcity-server.log from your TeamCity build server

No probs, will have to be tomorrow now though. Do you want me to remove the random dotnet integration plugins that appeared after installing the last plugin first?

Yes please, let's try to make a pure experiment

I've added new issue into the tracker and done some fixes, and I hope it helps. Fixes are in the master branch now and I will make a new release soon. So try it and if there are something is wrong let me know please

OK, finally got this installed. Didn't get all the weird tools appear this time...will run it for a bit and get back to you.

Ok, since updating I now see:

Starting test execution, please wait...
[12:43:17]	[Step 4/4] Could not find a test logger with URI or FriendlyName 'logger://teamcity'.

Previously I'd get the test output to the console.

Wondering if I have something set incorrectly that wasn't required before?

Hello. I'm sorry but I don't understand what step I'm missing.
I installed the plugin, did not get asked to do anything else.

When I try to build, this is the result:

Failed to start build #4 at 06 Oct 17 12:19 on dotnet-core
.NET integration package was not found at "/opt/buildagent/plugins/dotnet-core-plugin/tools"

This is what I installed:
https://plugins.jetbrains.com/plugin/9190--net-cli-support

How do I install the "Dotnet Integration" under tools? It's not selectable in the "+ Install tool" menu.

@bassebaba looks like current version has no bundled package. Please reload and reinstall plugin

@NikolayPianikov Thanks for the fast fix & feedback!
image