Reference

Exit codes

The kno exit-code contract: what each code means and what CI should do with it.

Code Meaning What CI should do
0 Completed Continue
1 Failed Fail the build, something is broken
2 Stopped at a budget cap Not a failure. The run did what you configured
3 Validation failed Fail the build, the deploy gate (reserved for kno validate)
4 Interrupted by a signal or deadline Not a failure. Resume it

2 and 4 both leave a resumable run. Reporting either as 1 would train people to ignore 1, the code that actually means something is wrong.

← All docs