We are using TFS Team Build with OctoPack. We have a solution with multiple projects set to Continuously Integrate when we check in any code. TFS team build then uses OctoPack and automatically creates the NuGet packages and pushes them into our Octopus Server via the API. The problem is that not all the versions are incremented during check in as we may have only updated a particular project.
When Octopus Deploy sees that the same version in the other projects are trying to be pushed via the API it throws an error and the entire build fails. The different projects have Assembly Version is set to “1.1.*”
How can I prevent my builds from failing. It’s ok that Octopus does not accept the non-updated packages.
Thanks for reaching out. Adding ?replace=true at the end of the push URL would overwrite the current package with the new one, avoiding that error (more info here)