We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
cli
woodpecker-cli pipeline logs is hardly usable and does not comply to the docs.
woodpecker-cli pipeline logs
The help text is:
$ woodpecker-cli pipeline logs help NAME: woodpecker-cli pipeline logs - show pipeline logs USAGE: woodpecker-cli pipeline logs [command options]<repo-id|repo-full-name> [pipeline] [stepID] OPTIONS: --help, -h show help
stating that pipeline and stedID are optional, but they are not and there is no hint of how to get the stepId
pipeline
stedID
stepId
I do not know, if this classifies as a bug or feature request
165 is the id of one of our repos, 21945 is a pipeline. To reproduce change against the ids of one of your repos / pipelines.
165
Only with repo:
$ woodpecker-cli pipeline logs 165 12:01PM FTL error running cli error="strconv.ParseInt: parsing \"\": invalid syntax"
With repo and pipeline:
$ woodpecker-cli pipeline logs 165 21945 12:02PM FTL error running cli error="strconv.ParseInt: parsing \"\": invalid syntax"
So let's try it with a step:
$ woodpecker-cli pipeline logs 165 21945 1 12:41PM FTL error running cli error="client error 404: " $ woodpecker-cli pipeline logs 165 21945 2 12:41PM FTL error running cli error="client error 400: "
Note: Two different error codes (404 i can understand, 400 not)
The cli doesn't give a clue too:
$ woodpecker-cli pipeline ps 165 21945 Step #2 Step: clone State: success Step #3 Step: wartung-weekly State: failure Step #4 Step: Send E-Mail State: success
What actually works is:
$ woodpecker-cli pipeline logs 165 21945 158434
The stepID I got from the browser network window.
stepID
I would expect that:
pipeline ls
pipeline ps
Bonus:
cli-version 2.6.0
May be related to #1824
next
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Component
cli
Describe the bug
woodpecker-cli pipeline logs
is hardly usable and does not comply to the docs.The help text is:
$ woodpecker-cli pipeline logs help NAME: woodpecker-cli pipeline logs - show pipeline logs USAGE: woodpecker-cli pipeline logs [command options]<repo-id|repo-full-name> [pipeline] [stepID] OPTIONS: --help, -h show help
stating that
pipeline
andstedID
are optional, but they are not and there is no hint of how to get thestepId
I do not know, if this classifies as a bug or feature request
Steps to reproduce
165
is the id of one of our repos, 21945 is a pipeline. To reproduce change against the ids of one of your repos / pipelines.Only with repo:
$ woodpecker-cli pipeline logs 165 12:01PM FTL error running cli error="strconv.ParseInt: parsing \"\": invalid syntax"
With repo and pipeline:
$ woodpecker-cli pipeline logs 165 21945 12:02PM FTL error running cli error="strconv.ParseInt: parsing \"\": invalid syntax"
So let's try it with a step:
Note: Two different error codes (404 i can understand, 400 not)
The cli doesn't give a clue too:
$ woodpecker-cli pipeline ps 165 21945 Step #2 Step: clone State: success Step #3 Step: wartung-weekly State: failure Step #4 Step: Send E-Mail State: success
What actually works is:
The
stepID
I got from the browser network window.Expected behavior
I would expect that:
pipeline
is not optional as there is no god default behavior and you can find out about them usingpipeline ls
stepID
is not mandatory. If omitted, you get the complete log of the pipelinestepID
maybe added topipeline ps
oror a human friendly way of specifying the
stepID
Bonus:
System Info
Additional context
May be related to #1824
Validations
next
version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]The text was updated successfully, but these errors were encountered: