OctopusDeploy / cli

| Public | Next Generation of the Octopus CLI :octopus:
Other
35 stars 10 forks source link

feat: add commands to manage release progression #382

Closed hnrkndrssn closed 3 months ago

hnrkndrssn commented 3 months ago

This PR adds the following commands to allow managing the progression of releases in Octopus:

Allow progression of a release

$ octopus release progression allow --project 'Available Function App Locations' --version '0.0.4' --no-prompt
Successfully allowed progression for release 0.0.4 (Releases-1686) in project Available Function App Locations

$ octopus release progression allow --project 'Available Function App Locations' --version '0.0.4' --no-prompt
Release with version/release number '0.0.4' (Releases-1686) is already allowed to progress to the next phase.

$ octopus release progression prevent
? Selected the project in which the release to be blocked exists Available Function App Locations
? Select Release to Prevent Progression for 0.0.4
? Reason It's broken
Successfully prevented progression for release 0.0.4 (Releases-1686) in project Available Function App Locations
Automation Command: octopus release progression prevent --project 'Available Function App Locations' --version '0.0.4' --reason 'It'\''s broken' --no-prompt

Prevent progression of a release

$ octopus release progression prevent --project 'Available Function App Locations' --version '0.0.4' --reason "It\'s bokrer" --no-prompt
Successfully prevented progression for release 0.0.4 (Releases-1686) in project Available Function App Locations

$ octopus release progression prevent --project 'Available Function App Locations' --version '0.0.4' --reason "It\'s bokrer" --no-prompt
Release with version/release number '0.0.4' (Releases-1686) is already prevented from progressing to the next phase.

$ octopus release progression allow
? Select the project in which the blocked release exists Available Function App Locations
? Select Release to Allow Progression for 0.0.4
Successfully allowed progression for release 0.0.4 (Releases-1686) in project Available Function App Locations

Automation Command: octopus release progression allow --project 'Available Function App Locations' --version '0.0.4' --no-prompt

Fixes #381

[sc-87084]