Forum Discussion
Issue when build & upload NuGet on internal Azure Artifacts Feed using YAML within Organization.
Hi, I'll try to elaborate my problem.
Current Implementation:
I have an Organization which holds multiple .NET Projects.
One of them is NuGet based project in which i create .nupkg file and upload it on nuget.org and use them in other projects by package mange source.
Requirement:
I want to secure my NuGet. So i have read articles about Azure Artifacts Feeds to securely upload your NuGet on AzureDevOps and use them in your projects.
- I have created an Azure Artifacts Feed.
- I have created a Service Connection (NuGetFeedAccess) within my Project.
- I have created YAML file which does the steps as defined below
- Triggers on Specific Branch
- Build nuget package with version
- Restore nuget package
- Then using PUSH command (NuGetCommand@2) doing these steps are defined
- packagesToPublish
- nugetFeedType: Internal
- vstsFeed: 'MyProject/MyProjectFeedName'
when i try to run my pipeline i having and error on NuGet Command (Step)
"Unable to load the service index for source https://pkgs.dev.azure.com/{Organization}/_packaging/nuget/v3/index.json."
. What i have understand that URL in error is not correct, But the URL defined In Service Connection is valid. Which i cross verified it.
Warnings: