Error on NuGet Push to Gemfury from Azure DevOps Pipeline: 405 Method Not Allowed

318 Views Asked by At

I am trying to connect the nuget package output from my Azure DevOps CI build to Gemfury. However, I receive an error from the NuGet push step when pushing to Gemfury:

Response status code does not indicate success: 405 (Method Not Allowed).

I am not sure how to connect to Gemfury from within Azure DevOps. I used the Azure DevOps Service Connection NuGet.

Here is my build setup

This is my NuGet service connection to Gemfury inside Azure DevOps: Add NuGet service connection in Azure DevOps

This uses the cURL connection type: https://gemfury.com/help/upload-packages#cURL (I've tried it with both url types from Gemfury - https://nuget.fury.io/TOKEN/username/ and https://[email protected]/username/)

It seems to be able to connect and authenticate to the service, when there isn't a nupkg to push. So I don't suspect there is an authentication issue.

I then use this Gemfury Service Connection with a NuGet push task in my Azure DevOps Pipeline: Gemfury Service Connection in Azure DevOps - NuGet

My nupkg exists as an artifact:

nupkg file exists in Artifacts

Here is the error I get on the NuGet push step of the Pipeline:

NuGet push error

I am able to manually copy the nupkg from the Azure DevOps build above and upload it to Gemfury:

Manual copy of nupkg results in Gemfury dashboard

Any ideas?

Here is a full list of available Service Connections within Azure DevOps.

0

There are 0 best solutions below