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
How to get raw exit code from Fastlane #21963
Comments
Hi, I am not sure it that's currently possible to get the exit status of scan command, but you could take a look at scan/lib/scan/runner, fastlane_core/lib/fastlane_core/command_executor. If it's not available, maybe adding such a feature wouldn't be difficult 🤔 |
To get the raw exit code from Fastlane, you can use the following command in your terminal or shell script: fastlane [lane_name] --raw Replace fastlane deploy --raw This command will execute the |
Does this mean we lose pretty printing for the rest of the output though? |
New Issue Checklist
Issue Description
When a lane or action has an exit code, fastlane always returns an exit code of 1. In the attached example, the unit tests fail with an exit code of
65
, but theres seemingly no way to get this.This would be useful for the CI to retry unit test crashes, but not unit test failures. Here is a sample project you can use to test this behaviour.
Similarly, if I use
bundle exec fastlane scan
standalone, it still only returns an exit code of 1.Command executed
Complete output when running fastlane, including the stack trace and command used
Environment
The text was updated successfully, but these errors were encountered: