Need a way to configure exit codes
See original GitHub issueI’m not finding a way to non-zero exit on Errors only. Currently, based on the logic above, an informational message will trigger a non-zero exit code (8). Working around this in CICD pipelines is frustrating. A way to say --non-zero-exit-code ERROR
would be splendid.
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (10 by maintainers)
Top Results From Across the Web
Linux and Unix exit code tutorial with examples - George Ornbo
To set an exit code in a script use exit 0 where 0 is the number you want to return. In the following...
Read more >Bash command line exit codes demystified | Enable Sysadmin
In this article, I explain the handful of reserved error codes, how they can occur, and how to use them to figure out...
Read more >Need a way to configure exit codes · Issue #1586 - GitHub
I'm not finding a way to non-zero exit on Errors only. Currently, based on the logic above, an informational message will trigger a...
Read more >Exit codes to configure/make/make install - Stack Overflow
In my company we have to manually configure and install apaches. So I'm working in a script to automatically install it. ... I...
Read more >How to configure the handling of exit codes by jobs
Without API · Set the job attribute stop_on_error to the value no · Add command for exit code 1: <modify_job job="/test/call_test" cmd="stop"/> ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think the only trick here is if someone wants to see the messages but change the exit code. I’m glad the
--ignore-checks W
works in this case.Wrong #. Updated now. The workarounds above will work for you and release v0.90.0 has a new way to configure exit codes.
You can look at #2460 to see the readme updates on how to use it.