cli icon indicating copy to clipboard operation
cli copied to clipboard

release deploy returned error when using latest as input param for version

Open bureku opened this issue 2 years ago • 2 comments

The bug

The command works if we explicitly specify the version, e.g. --version 1.0.0 but failed when using --version latest

Command to reproduce

octopus release deploy --space Default --project SOME_NAME --version latest --environment SOME.ENV --output-format basic --no-prompt

Outcome

 Octopus API error: Object reference not set to an instance of an object. []

Versions

cli: 1.7.1

Octopus Server: 2022.3.10594

Links

bureku avatar Nov 21 '23 23:11 bureku

This is intentional behaviour.

The reason behind changing it was the definition of "latest" is not clear, could mean latest by time or latest by semver definition.

If you are using this in a CI context you would probably know which version you are wanting.

The output you are seeing is actually a bug though.

benPearce1 avatar Nov 24 '23 00:11 benPearce1