Hi Monalla,
Thanks for the response. Here I have a different setup. I am describing the issue here.
I have a custom build server where build is running. I have two pipe lines in the same project code pointing to two different branches. There is no difference in code between both branches.
Pipeline 1 : NuGet restore step executing successfully with below mentioned message.
Pipeline 1 Message :
2022-01-11T12:46:49.3491429Z Restoring NuGet packages
2022-01-11T12:46:49.3491767Z ========================
2022-01-11T12:46:51.3412982Z MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'.
2022-01-11T12:46:51.8977752Z All packages listed in packages.config are already installed.
2022-01-11T12:46:51.9098559Z All Done
2022-01-11T12:46:51.9727641Z ##[section]Finishing: Restoring NuGet packages Before Build Solution
Pipeline 2 : NuGet restore step failing with below mentioned message.
Pipeline 2 Message :
2022-01-11T18:08:53.5420531Z Restoring NuGet packages
2022-01-11T18:08:53.5422795Z ========================
2022-01-11T18:08:54.1441430Z MSBuild auto-detection: using msbuild version '14.0' from 'C:\Program Files (x86)\MSBuild\14.0\bin'.
2022-01-11T18:08:54.2786025Z Feeds used:
2022-01-11T18:08:54.2788357Z C:\Users\VSTSSvc\AppData\Local\NuGet\Cache
2022-01-11T18:08:54.2788561Z C:\Users\VSTSSvc.nuget\packages\
2022-01-11T18:08:54.2788740Z https://www.myget.org/F/score/api/v2/
2022-01-11T18:08:54.2790528Z https://sitecore.myget.org/F/sc-packages/
2022-01-11T18:08:54.2790722Z https://sitecore.myget.org/F/sc-platform-9-1/
2022-01-11T18:08:54.2790805Z https://api.nuget.org/v3/index.json
2022-01-11T18:08:54.2790874Z
2022-01-11T18:08:54.3049180Z Restoring NuGet package Microsoft.AspNet.Razor.3.2.3.
2022-01-11T18:08:54.3057812Z Restoring NuGet package Microsoft.AspNet.WebPages.3.2.3.
2022-01-11T18:08:54.3077147Z Restoring NuGet package Microsoft.Web.Infrastructure.1.0.0.
2022-01-11T18:08:54.3092167Z Restoring NuGet package Score.BootstrapUI.9.0.171219.3.1.4.
2022-01-11T18:08:54.3100338Z Restoring NuGet package Score.9.0.171219.3.1.4.
2022-01-11T18:08:54.3114333Z Restoring NuGet package Microsoft.AspNet.Mvc.5.2.3.
2022-01-11T18:08:54.3122511Z Restoring NuGet package Sitecore.Kernel.9.0.171219.
2022-01-11T18:08:54.3130698Z Restoring NuGet package Score.UI.9.0.171219.3.1.4.
2022-01-11T18:08:54.5294116Z Adding package 'Sitecore.Kernel.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:54.5491099Z Restoring NuGet package Microsoft.Extensions.DependencyInjection.1.0.0.
2022-01-11T18:08:55.3029346Z Added package 'Sitecore.Kernel.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:55.3050193Z Restoring NuGet package Microsoft.Extensions.DependencyInjection.Abstractions.1.0.0.
2022-01-11T18:08:57.3096407Z Restoring NuGet package Newtonsoft.Json.9.0.1.
2022-01-11T18:08:59.0558402Z Restoring NuGet package Lucene.Net.3.0.3.
2022-01-11T18:08:59.2226569Z Restoring NuGet package Sitecore.Analytics.9.0.171219.
2022-01-11T18:08:59.2407096Z Restoring NuGet package Sitecore.Buckets.9.0.171219.
2022-01-11T18:08:59.2935498Z Restoring NuGet package Sitecore.Logging.9.0.171219.
2022-01-11T18:08:59.3404288Z Adding package 'Sitecore.Analytics.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.3595870Z Added package 'Sitecore.Analytics.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.3611836Z Restoring NuGet package Sitecore.Mvc.9.0.171219.
2022-01-11T18:08:59.3618854Z Restoring NuGet package Sitecore.Mvc.Analytics.9.0.171219.
2022-01-11T18:08:59.3657644Z Adding package 'Sitecore.Buckets.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.3810708Z Added package 'Sitecore.Buckets.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.3835811Z Restoring NuGet package Sitecore.Nexus.9.0.171219.
2022-01-11T18:08:59.4270487Z Adding package 'Sitecore.Logging.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.4375472Z Added package 'Sitecore.Logging.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.4408349Z Restoring NuGet package Sitecore.Update.9.0.171219.
2022-01-11T18:08:59.4831870Z Adding package 'Sitecore.Mvc.Analytics.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.4894801Z Adding package 'Sitecore.Mvc.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.4950292Z Added package 'Sitecore.Mvc.Analytics.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.4987646Z Restoring NuGet package Sitecore.Zip.9.0.171219.
2022-01-11T18:08:59.5040892Z Added package 'Sitecore.Mvc.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.5076051Z Adding package 'Sitecore.Nexus.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.5080990Z Restoring NuGet package FluentAssertions.4.1.1.
2022-01-11T18:08:59.5155720Z Added package 'Sitecore.Nexus.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.5201125Z Restoring NuGet package NSubstitute.1.9.2.
2022-01-11T18:08:59.5226975Z Restoring NuGet package NUnit.2.6.3.
2022-01-11T18:08:59.5642774Z Adding package 'Sitecore.Update.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.6302341Z Adding package 'Sitecore.Zip.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.6361591Z Added package 'Sitecore.Zip.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:08:59.6421755Z Restoring NuGet package Sitecore.FakeDb.1.7.2.
2022-01-11T18:09:00.0534214Z Added package 'Sitecore.Update.9.0.171219' to folder 'E:\agentsSitecore_work\21\s\packages'
2022-01-11T18:09:00.5561462Z WARNING: Unable to find version '5.2.3' of package 'Microsoft.AspNet.Mvc'.
2022-01-11T18:09:01.4063326Z WARNING: Unable to find version '3.2.3' of package 'Microsoft.AspNet.Razor'.
2022-01-11T18:09:02.2279495Z WARNING: Unable to find version '1.0.0' of package 'Microsoft.Web.Infrastructure'.
2022-01-11T18:09:03.3154295Z WARNING: Unable to find version '3.1.4' of package 'Score.9.0.171219'.
2022-01-11T18:09:03.8869019Z WARNING: Unable to find version '3.2.3' of package 'Microsoft.AspNet.WebPages'.
2022-01-11T18:09:03.9137879Z WARNING: Unable to find version '3.1.4' of package 'Score.BootstrapUI.9.0.171219'.
2022-01-11T18:09:05.0856621Z WARNING: Unable to find version '3.1.4' of package 'Score.UI.9.0.171219'.
2022-01-11T18:09:05.5397911Z WARNING: Unable to find version '1.0.0' of package 'Microsoft.Extensions.DependencyInjection'.
2022-01-11T18:09:06.4032445Z WARNING: Unable to find version '1.0.0' of package 'Microsoft.Extensions.DependencyInjection.Abstractions'.
2022-01-11T18:09:07.2250436Z WARNING: Unable to find version '9.0.1' of package 'Newtonsoft.Json'.
2022-01-11T18:09:08.0597521Z WARNING: Unable to find version '3.0.3' of package 'Lucene.Net'.
2022-01-11T18:09:08.8862379Z WARNING: Unable to find version '4.1.1' of package 'FluentAssertions'.
2022-01-11T18:09:09.7083305Z WARNING: Unable to find version '1.9.2' of package 'NSubstitute'.
2022-01-11T18:09:10.5578874Z WARNING: Unable to find version '2.6.3' of package 'NUnit'.
2022-01-11T18:09:11.3806168Z WARNING: Unable to find version '1.7.2' of package 'Sitecore.FakeDb'.
2022-01-11T18:09:11.4311487Z Unable to find version '5.2.3' of package 'Microsoft.AspNet.Mvc'.
2022-01-11T18:09:11.4312001Z Unable to find version '1.7.2' of package 'Sitecore.FakeDb'.
2022-01-11T18:09:11.4312209Z Unable to find version '2.6.3' of package 'NUnit'.
2022-01-11T18:09:11.4312319Z Unable to find version '1.9.2' of package 'NSubstitute'.
2022-01-11T18:09:11.4312417Z Unable to find version '4.1.1' of package 'FluentAssertions'.
2022-01-11T18:09:11.4312498Z Unable to find version '3.0.3' of package 'Lucene.Net'.
2022-01-11T18:09:11.4314632Z Unable to find version '9.0.1' of package 'Newtonsoft.Json'.
2022-01-11T18:09:11.4314884Z Unable to find version '1.0.0' of package 'Microsoft.Extensions.DependencyInjection.Abstractions'.
2022-01-11T18:09:11.4314980Z Unable to find version '1.0.0' of package 'Microsoft.Extensions.DependencyInjection'.
2022-01-11T18:09:11.4315063Z Unable to find version '3.2.3' of package 'Microsoft.AspNet.WebPages'.
2022-01-11T18:09:11.4315167Z Unable to find version '1.0.0' of package 'Microsoft.Web.Infrastructure'.
2022-01-11T18:09:11.4315229Z Unable to find version '3.2.3' of package 'Microsoft.AspNet.Razor'.
2022-01-11T18:09:11.4315305Z Unable to find version '3.1.4' of package 'Score.9.0.171219'.
2022-01-11T18:09:11.4315366Z Unable to find version '3.1.4' of package 'Score.BootstrapUI.9.0.171219'.
2022-01-11T18:09:11.4315436Z Unable to find version '3.1.4' of package 'Score.UI.9.0.171219'.
2022-01-11T18:09:11.4459573Z All Done
2022-01-11T18:09:11.4477248Z ##[debug]$LASTEXITCODE: 1
2022-01-11T18:09:11.4808759Z ##[debug]Exit code: 1
I am not sure if both the pipelines are executing in same user context or not?
As per your suggestion, I created a new PAT. But not sure where to associate the PAT to a pipeline. I verified all my previous PATs are still valid.
See, if this information helps you to understand the issue better?