Issue when build & upload NuGet on internal Azure Artifacts Feed using YAML within Organization.

Copper Contributor

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.

  1. I have created an Azure Artifacts Feed.
  2. I have created a Service Connection (NuGetFeedAccess) within my Project.
  3. 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."

NuGet Version: 6.4.0.123
Response status code does not indicate success: 404 (Not Found).
 

. 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: 

##[warning]Could not create provenance session: %s
##[warning]Required argument (Feed) is missing.

 

 

 

0 Replies