EXEC : The remote server returned an error : (400) Bad Request

Hello,

I use Jenkins as build server, and when Jenkins pushes the packages to Octopus server by OctoPack . I got this error “EXEC : The remote server returned an error : (400) Bad Request” and it marked as failed build. In fact, the problem occurs when the package already exists. So, there’s any way to avoid this problem or can OctoPack overwrite the package ?!

Thanks,
Fayez

Hi Fayez,

Thanks for reaching out. Like you mentioned, this errors shows up when a package with an already existing ID/Version combination is pushed. Unfortunately its not possible to override this behavior, as it is a limitation of the NuGet protocol. You’re gonna have to upload a package with a different Version.

Regards,

Dalmiro