Is this possible? I have tried the following three to no avail…
curl --verbose -k -X POST “https://{MYOCTOPUSSERVER}/nuget/packages” -T “{MYPACKAGE}.1.0.0.nupkg” -H “X-NuGet-ApiKey: {MYAPIKEY}” -I
curl --verbose -k -X PUT “https://{MYOCTOPUSSERVER}/nuget/packages” -T “{MYPACKAGE}.1.0.0.nupkg” -H “X-NuGet-ApiKey: {MYAPIKEY}” -I
curl --verbose -k https://{MYOCTOPUSSERVER}/nuget/packages --upload-file “{MYPACKAGE}.1.0.0.nupkg” -H “X-NuGet-ApiKey: {MYAPIKEY}”
Hi Marcus,
Thanks for getting in touch. Here is a page with some ideas on how to push to the built-in repository using lots of different tools: http://docs.octopusdeploy.com/display/OD/Pushing+packages+to+the+Built-In+repository
I’ve added an example of using curl
.
Hope that helps!
Mike
Thank you! Unfortunately, I cannot get this to work either, tried the following:
curl --verbose -k -X POST https://{MYOCTOPUSSERVER}/nuget/packages -H "X-Octopus-ApiKey: {MYAPIKEY}" -F "data=@{MYPACKAGE}"
Result: HTTP/1.1 405 Method Not Allowed
curl --verbose -k -X POST https://{MYOCTOPUSSERVER}/nuget/packages/raw -H "X-Octopus-ApiKey: {MYAPIKEY}" -F "data=@{MYPACKAGE}"
HTTP/1.1 404 Not Found (“ErrorMessage”: “The resource you requested was not found.”)
Any ideas?
Hi Marcus,
Thanks for getting back to me but I’m sorry to hear this bad news. Those URLs don’t look quite right, it should be /api/packages/raw
not /nuget/packages/raw
.
If this doesn’t help, which version of Octopus Server are you running? We changed how the built-in package feed works in Octopus 3.3 - I was testing with Octopus 3.4.
Hope that helps!
Mike
And… I am home Thank you very much!
Hi Marcus,
Great news and happy deployments!
Mike