Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some arguments do not accept the ID instead of the name #250

Open
olyop opened this issue Jun 29, 2023 · 0 comments
Open

Some arguments do not accept the ID instead of the name #250

olyop opened this issue Jun 29, 2023 · 0 comments

Comments

@olyop
Copy link

olyop commented Jun 29, 2023

The bug

A few commands do not accept the ID of the object I am targeting. I am trying to update one of our custom build tools to this CLI version and we currently rely on the ID's everywhere instead of the name (as we change this sometimes). It would be much preferred if we don't have to specify the name.

Command to reproduce

octopus release create `
  --project 'Projects-423' `
  --channel 'Channels-681' `
  --version='4.35.0.0' `
  --package-version '4.35.0.0 `
  --release-notes 'Automated release' `
  --no-prompt

octopus release deploy `
  --project 'Projects-423' `
  --tenant 'Tenants-708' `
  --environment 'Environments-201 ' `
  --version '4.35.0.0' `
  --force-package-download `
  --no-prompt

Outcome

Octopus API error: Channel named 'Channels-681' within project '<my project name>' was not found.
Octopus API error: Environment named 'Environments-201' within project '<my project name>' was not found.

Versions

cli: 1.4.0
Octopus Server: 2023.3.4135
os: Fedora Linux 38
cli: bash and powershell (latest)

@olyop olyop changed the title release create --channel does not accept the channel id Some arguments do not accept the ID instead of the name as they state in the documentation Jun 29, 2023
@olyop olyop changed the title Some arguments do not accept the ID instead of the name as they state in the documentation Some arguments do not accept the ID instead of the name Jun 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant