-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
setup:static-content:deploy, setup:di:compile and deploy:mode:set will not return a non-zero exit code if any error occurs #3060
Comments
+1 for fixing this issue. I just experienced the problem with failures not returning a non-zero return code. I am using Capistrano to deploy to stage/production servers. I run |
@magento - I did some digging into this, and it looks like what needs to happen is that the So if you search for all instances of For example, the
to this:
|
Seems there is already a PR for this #3189 |
@fooman Yes, you are correct. Thanks for sharing. Once that PR gets merged, this ticket should be closed. |
Thank you for your submission. We recently made some changes to the way we process GitHub submissions to more quickly identify and respond to core code issues. Feature Requests and Improvements should now be submitted to the new Magento 2 Feature Requests and Improvements forum (see details here). We are closing this GitHub ticket and have moved your request to the new forum. |
FTR - It appears based on the history of #3189 that this bug was fixed in 2.1.0 |
Internal ticket to track issue progress: MAGETWO-67500 |
[2.3.0-Regression] Bug Fixes PR
When you run commands in an build environment, like Jenkins, you want the commands to return a non-zero exit code if an error occurred so that Jenkins can fail the build.
Currently if any error occurs when you run setup:static-content:deploy it will not return a non-zero exit code which makes the build succeed even though the build is incomplete.
Example:
This will make the generation of static files to stop right in the middle because of an error but it will still not return a non-zero exit code which makes the build incomplete and Jenkins will not know about it.
The same behaviour occurs when you run setup:di:compile and when you switch deploy mode with deploy:mode:set. All of these commands should return a non-zero exit code if any error occurs.
The text was updated successfully, but these errors were encountered: