Nuget Package Dependency Triggers from local Nuget feed

Hello,

I'm attempting to configure Nuget Package Dependency triggers for projects which have deps which are published to the local Nuget feed. However I think the authentication is not being handled in the trigger checking stage, as I see the following error message.

 

 

Should Teamcity be handling this and if so what else could be the problem?

1
4 comments

Hi Alasdair,

Please provide the following details:

  • What exact NuGet feed is being used - TeamCity built-in feed, or external feed on the local server?
  • Which versions of TeamCity and NuGet.exe are being used? NuGet.exe version can be seen in the build step settings.
  • Paste the build log as a comment, or SUBMIT A REQUEST using the button at the top of this page, and attach the log there.
1
Avatar
Permanently deleted user

Hello Anatoly,

 

I'm using the TeamCity built-in feed.

TeamCity Professional 2018.2.2 (build 61245).

Nuget version 4.9.2

Build log - not sure that this contains anything related to the Trigger Error but here is the latest successful build (triggered via VCS update).

0
Avatar
Permanently deleted user
Build 'YYYY / Build' #15
Started 2019-01-24 10:48:23 on 'DEVSERVER' by 'Git'
Finished 2019-01-24 10:48:35 with status NORMAL 'Success'
VCS revisions: 'https://XXXXXXXXXX/Bonobo.Git.Server/YYYY.git#refs/heads/master' (Git): 51e02863e57078086dfa0710407601912474cf3b (branch 'refs/heads/master')
TeamCity URL http://devserver.com:8080/viewLog.html?buildId=123&buildTypeId=YYYY_Build
TeamCity server version is 2018.2.2 (build 61245), server timezone: GMT (UTC)

[10:48:23] : bt1 (12s)
[10:48:23]i: TeamCity server version is 2018.2.1 (build 61078)
[10:48:23] : The build is removed from the queue to be prepared for the start
[10:48:23] : Collecting changes in 1 VCS root
[10:48:23] : [Collecting changes in 1 VCS root] VCS Root details
[10:48:23] : [VCS Root details] "https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master" {instance id=1, parent internal id=1, parent id=YYYY_HttpsDevserverBonoboGitServerP7appDDXForImprontaGitR, description: "https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master"}
[10:48:23]i: [Collecting changes in 1 VCS root] Detecting changes in VCS root 'https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master' (used in 'Build')
[10:48:23]i: [Collecting changes in 1 VCS root] Will collect changes for 'https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master' starting from revision 51e02863e57078086dfa0710407601912474cf3b
[10:48:23] : [Collecting changes in 1 VCS root] Compute revision for 'https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master'
[10:48:23] : [Compute revision for 'https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master'] Upper limit revision: 51e02863e57078086dfa0710407601912474cf3b
[10:48:23]i: [Compute revision for 'https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master'] MaxModId = 56
[10:48:23] : [Compute revision for 'https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master'] Latest commit attached to build configuration: 51e02863e57078086dfa0710407601912474cf3b
[10:48:23] : [Compute revision for 'https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master'] Computed revision: 51e02863e57078086dfa0710407601912474cf3b
[10:48:23] : Starting the build on the agent DEVSERVER
[10:48:23]i: Agent time zone: Europe/London
[10:48:23]i: Agent is running under JRE: 1.8.0_192-b12
[10:48:23] : Clearing temporary directory: C:\TeamCity\buildAgent\temp\buildTmp
[10:48:23] : Publishing internal artifacts (3s)
[10:48:27] : [Publishing internal artifacts] Publishing 1 file using [ArtifactsCachePublisher]
[10:48:27] : [Publishing internal artifacts] Publishing 1 file using [WebPublisher]
[10:48:23] : Clean build enabled: removing old files from C:\TeamCity\buildAgent\work\c4fddbce36fd4567
[10:48:23] : Checkout directory: C:\TeamCity\buildAgent\work\c4fddbce36fd4567
[10:48:23] : Updating sources: auto checkout (on agent) (1s)
[10:48:23] : [Updating sources] Will use agent side checkout
[10:48:23] : [Updating sources] VCS Root: https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master (1s)
[10:48:23] : [VCS Root: https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master] revision: 51e02863e57078086dfa0710407601912474cf3b
[10:48:23] : [VCS Root: https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master] Git version: 2.20.0.0
[10:48:23] : [VCS Root: https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master] Update git mirror (C:\TeamCity\buildAgent\system\git\git-8EC17331.git)
[10:48:23] : [Update git mirror (C:\TeamCity\buildAgent\system\git\git-8EC17331.git)] "C:\Program Files\Git\bin\git.exe" config http.sslCAInfo
[10:48:23] : [Update git mirror (C:\TeamCity\buildAgent\system\git\git-8EC17331.git)] "C:\Program Files\Git\bin\git.exe" config --unset http.sslCAInfo
[10:48:23] : [Update git mirror (C:\TeamCity\buildAgent\system\git\git-8EC17331.git)] "C:\Program Files\Git\bin\git.exe" show-ref
[10:48:23] : [Update git mirror (C:\TeamCity\buildAgent\system\git\git-8EC17331.git)] "C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass5940563261464497523.bat -c credential.helper= ls-remote origin
[10:48:24] : [Update git mirror (C:\TeamCity\buildAgent\system\git\git-8EC17331.git)] "C:\Program Files\Git\bin\git.exe" show-ref refs/remotes/origin/master
[10:48:24] : [Update git mirror (C:\TeamCity\buildAgent\system\git\git-8EC17331.git)] "C:\Program Files\Git\bin\git.exe" show-ref refs/heads/master
[10:48:24] : [Update git mirror (C:\TeamCity\buildAgent\system\git\git-8EC17331.git)] "C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass57698555267396274.bat -c credential.helper= fetch --progress origin +refs/heads/master:refs/heads/master
[10:48:24]i: ["C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass57698555267396274.bat -c credential.helper= fetch --progress origin +refs/heads/master:refs/heads/master] remote: Counting objects: 7, done.
[10:48:24]i: ["C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass57698555267396274.bat -c credential.helper= fetch --progress origin +refs/heads/master:refs/heads/master] remote: Compressing objects: 25% (1/4)
[10:48:24]i: ["C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass57698555267396274.bat -c credential.helper= fetch --progress origin +refs/heads/master:refs/heads/master] remote: Compressing objects: 50% (2/4)
[10:48:24]i: ["C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass57698555267396274.bat -c credential.helper= fetch --progress origin +refs/heads/master:refs/heads/master] remote: Compressing objects: 75% (3/4)
[10:48:24]i: ["C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass57698555267396274.bat -c credential.helper= fetch --progress origin +refs/heads/master:refs/heads/master] remote: Compressing objects: 100% (4/4)
[10:48:24]i: ["C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass57698555267396274.bat -c credential.helper= fetch --progress origin +refs/heads/master:refs/heads/master] remote: Compressing objects: 100% (4/4), done.
[10:48:24]i: ["C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass57698555267396274.bat -c credential.helper= fetch --progress origin +refs/heads/master:refs/heads/master] remote: Total 4 (delta 3), reused 0 (delta 0)
[10:48:24]i: ["C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass57698555267396274.bat -c credential.helper= fetch --progress origin +refs/heads/master:refs/heads/master] From https://devserver.com/Bonobo.Git.Server/YYYY
[10:48:24]i: ["C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass57698555267396274.bat -c credential.helper= fetch --progress origin +refs/heads/master:refs/heads/master] 77f36e5..51e0286 master -> master
[10:48:24]i: ["C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass57698555267396274.bat -c credential.helper= fetch --progress origin +refs/heads/master:refs/heads/master] 77f36e5..51e0286 master -> origin/master
[10:48:24] : [Update git mirror (C:\TeamCity\buildAgent\system\git\git-8EC17331.git)] "C:\Program Files\Git\bin\git.exe" log -n1 --pretty=format:%H%x20%s 51e02863e57078086dfa0710407601912474cf3b --
[10:48:24] : [Update git mirror (C:\TeamCity\buildAgent\system\git\git-8EC17331.git)] "C:\Program Files\Git\bin\git.exe" pack-refs --all
[10:48:24] : [VCS Root: https://devserver.com/Bonobo.Git.Server/YYYY.git#refs/heads/master] Update checkout directory (C:\TeamCity\buildAgent\work\c4fddbce36fd4567)
[10:48:24] : [Update checkout directory (C:\TeamCity\buildAgent\work\c4fddbce36fd4567)] The .git directory is missing in 'C:\TeamCity\buildAgent\work\c4fddbce36fd4567'. Running 'git init'...
[10:48:24] : [Update checkout directory (C:\TeamCity\buildAgent\work\c4fddbce36fd4567)] "C:\Program Files\Git\bin\git.exe" init
[10:48:24] : [Update checkout directory (C:\TeamCity\buildAgent\work\c4fddbce36fd4567)] "C:\Program Files\Git\bin\git.exe" config lfs.storage C:\TeamCity\buildAgent\system\git\git-8EC17331.git\lfs
[10:48:24] : [Update checkout directory (C:\TeamCity\buildAgent\work\c4fddbce36fd4567)] "C:\Program Files\Git\bin\git.exe" config core.sparseCheckout true
[10:48:24] : [Update checkout directory (C:\TeamCity\buildAgent\work\c4fddbce36fd4567)] "C:\Program Files\Git\bin\git.exe" config http.sslCAInfo
[10:48:24] : [Update checkout directory (C:\TeamCity\buildAgent\work\c4fddbce36fd4567)] "C:\Program Files\Git\bin\git.exe" config --unset http.sslCAInfo
[10:48:24] : [Update checkout directory (C:\TeamCity\buildAgent\work\c4fddbce36fd4567)] "C:\Program Files\Git\bin\git.exe" show-ref
[10:48:24] : [Update checkout directory (C:\TeamCity\buildAgent\work\c4fddbce36fd4567)] "C:\Program Files\Git\bin\git.exe" show-ref refs/remotes/origin/master
[10:48:24] : [Update checkout directory (C:\TeamCity\buildAgent\work\c4fddbce36fd4567)] "C:\Program Files\Git\bin\git.exe" log -n1 --pretty=format:%H%x20%s 51e02863e57078086dfa0710407601912474cf3b --
[10:48:24] : [Update checkout directory (C:\TeamCity\buildAgent\work\c4fddbce36fd4567)] "C:\Program Files\Git\bin\git.exe" branch
[10:48:24] : [Update checkout directory (C:\TeamCity\buildAgent\work\c4fddbce36fd4567)] "C:\Program Files\Git\bin\git.exe" -c core.askpass=C:\TeamCity\buildAgent\temp\buildTmp\pass2989963311729003350.bat -c credential.helper= -c credential.helper=C:/TeamCity/buildAgent/temp/buildTmp/credHelper5947873112471619653.bat reset --hard 51e02863e57078086dfa0710407601912474cf3b
[10:48:24] : [Update checkout directory (C:\TeamCity\buildAgent\work\c4fddbce36fd4567)] "C:\Program Files\Git\bin\git.exe" branch --set-upstream-to=refs/remotes/origin/master
[10:48:24] : Build preparation done
[10:48:24] : File content replacer
[10:48:24] : [File content replacer] Applying replacement "$1$3.\15$4" to lines matched by pattern "(<(Version)\s*>)(.*)(<\/\s*\2\s*>)" in the files matched by wildcard: YYYY.csproj...
[10:48:24]i: [File content replacer] Checkout directory marked as dirty.
[10:48:24] : [File content replacer] File changed: YYYY.csproj (charset UTF-8).
[10:48:24] : [File content replacer] Total files changed: 1.
[10:48:24] : Step 1/4: NuGet Installer (3s)
[10:48:25] : [Step 1/4] scan: Searching for nuget.config files
[10:48:25] : [scan] RepositoryPath was not extracted from NuGet.config file at C:\TeamCity\buildAgent\work\c4fddbce36fd4567\NuGet.Config. Packages will be downloaded into default path: C:\TeamCity\buildAgent\work\c4fddbce36fd4567\packages.
[10:48:25] : [scan] Found packages folder: C:\TeamCity\buildAgent\work\c4fddbce36fd4567\packages
[10:48:25] : [scan] No repositories.config found at C:\TeamCity\buildAgent\work\c4fddbce36fd4567\packages\repositories.config
[10:48:25] : [scan] Scanning projects in solution file: C:\TeamCity\buildAgent\work\c4fddbce36fd4567\YYYY.sln
[10:48:25] : [scan] Found project C:\TeamCity\buildAgent\work\c4fddbce36fd4567\YYYY.csproj
[10:48:25] : [Step 1/4] restore: Restoring NuGet packages for YYYY.sln (3s)
[10:48:25] : [restore] Starting: C:\TeamCity\buildAgent\tools\NuGet.CommandLine.4.9.2\tools\NuGet.exe restore C:\TeamCity\buildAgent\work\c4fddbce36fd4567\YYYY.sln -NoCache -Source http://localhost:8080/httpAuth/app/nuget/feed/_Root/p7/v3/index.json -Source https://api.nuget.org/v3/index.json
[10:48:25] : [restore] in directory: C:\TeamCity\buildAgent\work\c4fddbce36fd4567
[10:48:25] : [restore] MSBuild auto-detection: using msbuild version '15.9.21.664' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\MSBuild\15.0\bin'.
[10:48:27] : [restore] Restoring packages for C:\TeamCity\buildAgent\work\c4fddbce36fd4567\YYYY.csproj...
[10:48:27] : [restore] GET http://localhost:8080/httpAuth/app/nuget/feed/_Root/p7/v3/flatcontainer/ZZZZZZ/index.json
[10:48:27] : [restore] GET https://api.nuget.org/v3-flatcontainer/ZZZZZZ/index.json
[10:48:27] : [restore] OK http://localhost:8080/httpAuth/app/nuget/feed/_Root/p7/v3/flatcontainer/ZZZZZZ/index.json 103ms
[10:48:28] : [restore] NotFound https://api.nuget.org/v3-flatcontainer/ZZZZZZ/index.json 172ms
[10:48:28] : [restore] GET http://localhost:8080/httpAuth/app/nuget/feed/_Root/p7/v3/flatcontainer/ZZZZZZ/1.0.13/ZZZZZZ.1.0.13.nupkg
[10:48:28] : [restore] OK http://localhost:8080/httpAuth/app/nuget/feed/_Root/p7/v3/flatcontainer/ZZZZZZ/1.0.13/ZZZZZZ.1.0.13.nupkg 5ms
[10:48:28] : [restore] Installing ZZZZZZ 1.0.13.
[10:48:28] : [restore] Committing restore...
[10:48:28] : [restore] Generating MSBuild file C:\TeamCity\buildAgent\work\c4fddbce36fd4567\obj\YYYY.csproj.nuget.g.props.
[10:48:28] : [restore] Generating MSBuild file C:\TeamCity\buildAgent\work\c4fddbce36fd4567\obj\YYYY.csproj.nuget.g.targets.
[10:48:28] : [restore] Writing lock file to disk. Path: C:\TeamCity\buildAgent\work\c4fddbce36fd4567\obj\project.assets.json
[10:48:28] : [restore] Restore completed in 1.34 sec for C:\TeamCity\buildAgent\work\c4fddbce36fd4567\YYYY.csproj.
[10:48:28] : [restore]
[10:48:28] : [restore] NuGet Config files used:
[10:48:28] : [restore] C:\TeamCity\buildAgent\work\c4fddbce36fd4567\NuGet.Config
[10:48:28] : [restore] C:\Users\gMSATeamCityDep$\AppData\Roaming\NuGet\NuGet.Config
[10:48:28] : [restore]
[10:48:28] : [restore] Feeds used:
[10:48:28] : [restore] http://localhost:8080/httpAuth/app/nuget/feed/_Root/p7/v3/index.json
[10:48:28] : [restore] https://api.nuget.org/v3/index.json
[10:48:28] : [restore]
[10:48:28] : [restore] Installed:
[10:48:28] : [restore] 1 package(s) to C:\TeamCity\buildAgent\work\c4fddbce36fd4567\YYYY.csproj
[10:48:28] : [restore] Process exited with code 0
[10:48:28] : Step 2/4: .NET CLI (dotnet) (2s)
[10:48:28] : [Step 2/4] dotnet.exe build --no-restore @C:\TeamCity\buildAgent\temp\agentTmp\ac1ef4413e514978a26717b4f30cddbd.rsp
[10:48:28] : [Step 2/4] build (2s)
[10:48:28] : [build] Starting: "C:\Program Files\dotnet\dotnet.exe" build --no-restore @C:\TeamCity\buildAgent\temp\agentTmp\ac1ef4413e514978a26717b4f30cddbd.rsp
[10:48:28] : [build] in directory: C:\TeamCity\buildAgent\work\c4fddbce36fd4567
[10:48:28] : [build] Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
[10:48:28] : [build] Copyright (C) Microsoft Corporation. All rights reserved.
[10:48:28] : [build]
[10:48:31] : [build] YYYY -> C:\TeamCity\buildAgent\work\c4fddbce36fd4567\bin\Debug\net451\YYYY.exe
[10:48:31] : [build] [32;1m
[10:48:31] : [build] [32;1mBuild succeeded.
[10:48:31] : [build] 0 Warning(s)
[10:48:31] : [build] 0 Error(s)
[10:48:31] : [build]
[10:48:31] : [build] Time Elapsed 00:00:01.67
[10:48:31] : [build]
[10:48:31] : [build]
[10:48:31] : [build] Process exited with code 0
[10:48:31] : Step 3/4: dotnet pack --no-restore (.NET CLI (dotnet)) (1s)
[10:48:31] : [Step 3/4] dotnet.exe pack --no-restore @C:\TeamCity\buildAgent\temp\agentTmp\91c0eb3753614053a4979dabaefad876.rsp
[10:48:31] : [Step 3/4] pack (1s)
[10:48:31] : [pack] Starting: "C:\Program Files\dotnet\dotnet.exe" pack --no-restore @C:\TeamCity\buildAgent\temp\agentTmp\91c0eb3753614053a4979dabaefad876.rsp
[10:48:31] : [pack] in directory: C:\TeamCity\buildAgent\work\c4fddbce36fd4567
[10:48:31] : [pack] Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
[10:48:31] : [pack] Copyright (C) Microsoft Corporation. All rights reserved.
[10:48:31] : [pack]
[10:48:33] : [pack] YYYY -> C:\TeamCity\buildAgent\work\c4fddbce36fd4567\bin\Debug\net451\YYYY.exe
[10:48:33] : [pack] Successfully created package 'C:\TeamCity\buildAgent\work\c4fddbce36fd4567\bin\Debug\YYYY.1.0.15.nupkg'.
[10:48:33] : [pack] [32;1m
[10:48:33] : [pack] [32;1mBuild succeeded.
[10:48:33] : [pack] 0 Warning(s)
[10:48:33] : [pack] 0 Error(s)
[10:48:33] : [pack]
[10:48:33] : [pack] Time Elapsed 00:00:00.65
[10:48:33] : [pack]
[10:48:33] : [pack]
[10:48:33] : [pack] Process exited with code 0
[10:48:33] : Step 4/4: NuGet Publish (1s)
[10:48:33] : [Step 4/4] push: Publish package bin\Debug\YYYY.1.0.15.nupkg (1s)
[10:48:33] : [push] Starting: C:\TeamCity\buildAgent\tools\NuGet.CommandLine.4.9.2\tools\NuGet.exe push C:\TeamCity\buildAgent\work\c4fddbce36fd4567\bin\Debug\YYYY.1.0.15.nupkg ******* -Source http://localhost:8080/httpAuth/app/nuget/feed/_Root/p7/v3/index.json
[10:48:33] : [push] in directory: C:\TeamCity\buildAgent\work\c4fddbce36fd4567\bin\Debug
[10:48:34] : [push] Pushing YYYY.1.0.15.nupkg to 'http://localhost:8080/httpAuth/app/nuget/feed/_Root/p7/v2'...
[10:48:34] : [push] PUT http://localhost:8080/httpAuth/app/nuget/feed/_Root/p7/v2/
[10:48:34] : [push] OK http://localhost:8080/httpAuth/app/nuget/feed/_Root/p7/v2/ 556ms
[10:48:34] : [push] Your package was pushed.
[10:48:34] : [push] Process exited with code 0
[10:48:35] : File content replacer
[10:48:35] : [File content replacer] Undo changes in: YYYY.csproj.
[10:48:35]i: [File content replacer] Checkout directory marked as clean.
[10:48:35] : Publishing internal artifacts
[10:48:35] : [Publishing internal artifacts] Publishing 1 file using [ArtifactsCachePublisher]
[10:48:35] : [Publishing internal artifacts] Publishing 1 file using [WebPublisher]
[10:48:35] : Build finished
0

Alasdair,

Please share the screenshot of the full trigger settings, and the following log files:

  • <TeamCity home>/logs/teamcity-vcs.log
  • <TeamCity home>/logs/teamcity-nuget.log

Also, a couple of questions:

  1. When you run the dependent build manually, does it use the latest package version?
  2. What output do you get when listing package YYYY manually with nuget.exe?
nuget.exe list <Package_Id_from_trigger_settings> -source <Feed_URL_from_trigger_settings>

Be sure to specifying the same credentials as given in the trigger settings when prompted.

0

Please sign in to leave a comment.