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

Schema validation failing using commands & entrypoint #4064

Closed
3 tasks done
HamburgerJungeJr opened this issue Aug 28, 2024 · 1 comment · Fixed by #4065
Closed
3 tasks done

Schema validation failing using commands & entrypoint #4064

HamburgerJungeJr opened this issue Aug 28, 2024 · 1 comment · Fixed by #4065
Labels
bug Something isn't working

Comments

@HamburgerJungeJr
Copy link
Contributor

Component

server, web-ui

Describe the bug

When using commands & entrypoint at the same step to change the executing shell the WebUI & VSCode show a warning that the step matches multiple schemas but must match only one.

I suspect the following lines

"step": {
"description": "A step of your workflow executes either arbitrary commands or uses a plugin. Read more: https://woodpecker-ci.org/docs/usage/workflow-syntax#steps",
"oneOf": [
{
"$ref": "#/definitions/commands_step"
},
{
"$ref": "#/definitions/entrypoint_step"
},
{
"$ref": "#/definitions/plugin_step"
}
]
},

as these only allow one of commands and entrypoint

Steps to reproduce

Create workflow with a step using commands and entrypoint

Expected behavior

No warnings should be issued as using commands and entrypoint at the same time is described in the docs to change the executing shell. (https://woodpecker-ci.org/docs/usage/workflow-syntax#entrypoint

System Info

{"source":"https://github.com/woodpecker-ci/woodpecker","version":"2.7.0"}

Additional context

No response

Validations

  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Checked that the bug isn't fixed in the next version already [https://woodpecker-ci.org/faq#which-version-of-woodpecker-should-i-use]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants
@HamburgerJungeJr and others