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
Describe the bug
amplify publish (for angular project) doesnt pass back exit code from ng build.
I was trying to setup CI/CD with gitlab and docker executioner. I used image with no angular cli installed for test purposes and spotted following issue:
> [email protected] build /builds/trinity/jumbo
> ng build
sh: ng: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! [email protected] build: `ng build`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-11-22T10_59_12_859Z-debug.log
frontend build command exited with code 1
$ echo $?
0
Even if ng build failed amplify still returned exit code 0 which leads to CI jobs being marked as successfully completed.
Amplify CLI Version
3.17.0
Expected behavior
Return proper exit code.
Desktop (please complete the following information):
OS: Debian
Node 12-alpine
The text was updated successfully, but these errors were encountered:
Describe the bug
amplify publish (for angular project) doesnt pass back exit code from ng build.
I was trying to setup CI/CD with gitlab and docker executioner. I used image with no angular cli installed for test purposes and spotted following issue:
Even if ng build failed amplify still returned exit code 0 which leads to CI jobs being marked as successfully completed.
Amplify CLI Version
3.17.0
Expected behavior
Return proper exit code.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: