Octopack replace package if it exists?

I know that in a recent release (3.2.4 I think) an option was added to replace a package pushed with NUGET.

How about with Octopack? Do we have a switch to replace an existing package of the same version?

Hi Michael,

That change was introduced only for the Octopus built-in repository. Pushing to the URL ending with ?replace=true as shown on the doc for the Octopack parameter /p:OctoPackPublishPackageToHttp should be enough.

Regards,
Dalmiro

It’s still not clear to me. Are you saying that the following will work?

/p:OctoPackPublishPackageToHttp=www.domain.com?replace=true

URL to push packages to built-in repository looks a bit like this:

http://localhost/nuget/packages

From Octopack, you’ll normally use it like:

/p:OctoPackPublishPackageToHttp=http://localhost/nuget/packages

Instead, try this:

/p:OctoPackPublishPackageToHttp=http://localhost/nuget/packages?replace=true

change localhost for your URL of course

That worked, thanks.