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

Exit with non-zero code if docs plugin has error #2081

Merged
merged 2 commits into from
Aug 20, 2021

Conversation

johnboyes
Copy link
Contributor

Prior to this commit running a documentation plugin resulted in a zero
exit code even if the plugin explicitly returned an error. This meant
that in a CI/CD pipeline, for instance, the pipeline couldn't check the
exit code and instead had to check the console or log output, which was
brittle.

Fixes #2080

Signed-off-by: John Boyes 154404+johnboyes@users.noreply.github.com

Prior to this commit running a documentation plugin resulted in a zero
exit code even if the plugin explicitly returned an error. This meant
that in a CI/CD pipeline, for instance, the pipeline couldn't check the
exit code and instead had to check the console or log output, which was
brittle.

Fixes getgauge#2080

Signed-off-by: John Boyes <154404+johnboyes@users.noreply.github.com>
@johnboyes
Copy link
Contributor Author

johnboyes commented Aug 16, 2021

Have bumped the Gauge version from 1.4.0 to 1.4.1

sriv
sriv previously approved these changes Aug 20, 2021
@gaugebot
Copy link

gaugebot bot commented Aug 20, 2021

@johnboyes Thank you for contributing to gauge. Your pull request has been labeled as a release candidate 🎉🎉.

Merging this PR will trigger a release.

Please bump up the version as part of this PR.

Instructions to bump the version can found at CONTRIBUTING.md

If the CONTRIBUTING.md file does not exist or does not include instructions about bumping up the version, please looks previous commits in git history to see what changes need to be done.

Signed-off-by: John Boyes <154404+johnboyes@users.noreply.github.com>
@sriv sriv merged commit a82478a into getgauge:master Aug 20, 2021
@johnboyes johnboyes deleted the documentation-plugins-exit-code branch August 24, 2021 20:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Documentation plugins should have a non-zero exit code when they return an error
2 participants