cli icon indicating copy to clipboard operation
cli copied to clipboard

Add progress logs to task wait command

Open talenor opened this issue 1 year ago • 1 comments

In old CLI we have flag --progress that allow to see task logs in CI logs and they could be quite useful for troubleshooting. Could the similar flag be added to the new CLI?

I've found a similar closed issue https://github.com/OctopusDeploy/cli/issues/227 but it was just closed without any explanation/suggested workaround

talenor avatar Jul 09 '24 17:07 talenor

Yes, it's essential 😔

QuentinScDS avatar Jul 24 '24 07:07 QuentinScDS

is there any plan to add this flag?

vaiddas avatar Oct 14 '24 03:10 vaiddas

Agreed, this is a very important item depending on the teams workflow. We use Bitbucket pipelines to manage the deployment and developers don't have direct access to Octopus as all the configs are stored in the repo. In testing out the new CLI this is a big loss which is keeping us from moving off the Octo CLI.

mark-studer-compex avatar Feb 11 '25 20:02 mark-studer-compex

Another customer reported this is essential for them and are not able to upgrade to the V6 ADO step versions until they can view the task logs in the build pipeline for V6 tasks.

Internal ticket - https://octopus.zendesk.com/agent/tickets/224353

Clare-Octopus avatar Feb 13 '25 09:02 Clare-Octopus

Enhancement: Added --progress flag support for the task wait command.

You can now pipe server task IDs from the release deploy command to task wait to view detailed task logs. Example:

octopus release deploy -p octoCLI --space spaces-1 --version 0.0.10 -e Dev --no-prompt -f basic | octopus task wait --progress

HuyPhanNguyen avatar Feb 14 '25 01:02 HuyPhanNguyen

The new changes look very nice, once the workertools docker image (https://hub.docker.com/r/octopuslabs/workertools) is updated I'll try it out.

mark-studer-compex avatar Feb 14 '25 19:02 mark-studer-compex

Hi @HuyPhanNguyen - Thanks for fixing this and now we have started using this flag.

Quick question: Is there a way to view the progress in verbose mode? I can see Info, Warning, and Fatal errors.

I can't figure out how to set verbose mode like we do in the Octopus Console. Am I missing something or it's not possible for now?

Thanks,

vaiddas avatar Feb 24 '25 02:02 vaiddas