Continous Deployment - Issue with pushin nuget package to the feed

If I want to run my builds/deployments from TeamCity - I have a powershell build step which is running my build and I have ‘RunOctoPack’=‘true’ as a parameter, and also OctoPackPublishPackageToHttp=(mypath) , this works fine but If the builds works and I rerun the build I get a 400 bad request because its trying to push the same version of the nuget package to the Octopus Deploy nuget feed - is there a way around this throwing a 400 Bad Request Error, what If I want to run the build again without any changes?

Hi,

Thanks for getting in touch! There is no way to stop the error when trying to push while building if the package already exists. You could however take out the publish package command and instead run Nuget push when you are ready with the package to publish it. Otherwise just ignoring the error is it.

Vanessa

Ok thanks for your help.