woodpecker
woodpecker copied to clipboard
Ignore failure in certain steps
Clear and concise description of the problem
For specific steps in our pipeline, we want to allow failure, eg overambitious linting or spellchecks, and still make the whole pipeline successful. Alternatively we could probably isolate this check in a separate pipeline and have that fail. But for both cases I could not find a solution.
a similar feature in github actions: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepscontinue-on-error
Looks like it is already supported to run a specific step on failure (or on failure and success), but I'd like my whole pipeline to show up as succesful if this particular step fails https://github.com/woodpecker-ci/woodpecker/blob/master/pipeline/samples/sample_4/pipeline.yml#L20-L21
Suggested solution
allow skipping the exitcode of a specific pipeline step:
add an option on-error/on-failure
check precommit:
image: xxx/venv-3.9
on-error: ignore
commands:
- tox -e pre-commit
looks like drone also has a failure:ignore option
Alternative
No response
Additional context
No response
Validations
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.