You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is it somehow possible to make a complete build fail if there is a error during the build?
My situation is the following: I have a CI setup that builds my project, wraps it into a docker and publishes it into a docker repo. If I then want to publish a the new version I use docker to pull the new image and run it. Recently I did exactly that to then discover that the app doesn't work. Looking trough the CI server logs I found out that the production build of angular-cli (beta webpack 8) had an ERROR message, but it did not fail the build. If it would have than no new docker image would have been published and I would have noticed before I published the new version.
Activity
filipesilva commentedon Sep 19, 2016
This is a bug actually. We should have a non-zero exit code for failed builds.
Blasz commentedon Sep 23, 2016
This would be great, I just experienced the same thing. Are there any workarounds we can do ourselves in the meantime?
filipesilva commentedon Sep 26, 2016
Seems related to webpack/webpack#708
fix(build): fail ng build on error
fix(build): fail ng build on error (#2360)
fix(build): fail ng build on error (angular#2360)
fix(build): fail ng build on error (angular#2360)
angular-automatic-lock-bot commentedon Sep 6, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
fix(build): fail ng build on error (angular#2360)