-
Notifications
You must be signed in to change notification settings - Fork 23
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
Report a non-zero exit code if build fails #83
Comments
So much in favor of this. I'm working for a CI company and just looked at the build of one of our users, which is all green even though all steps involving the Modulus CLI actually failed :( Is there a way we could work around this at the moment? |
@tzmanics We actually have error handling in place in the CLI that will return a nonzero exit code on process error. Is this an issue of an error not being thrown during a specific use case? |
@musgravejw This is not a local process error, but an error in a remote process. The CLI at this point in the deploy is a dumb pipe for the log, so we will probably need to add some string parsing. Maybe looking for something like
|
I saw an example that looks like this issue today:
at which point the deploy command ended with a zero exit code. Since the deploy actually failed ("Build failed") I would have expected a non-zero exit code in this case. |
If any part of a build fails, the CLI should exit with a non-zero code.
The text was updated successfully, but these errors were encountered: