`Build and Test` NOT pickup the npm ERR during npm run buil and render as passed on CI
it shows as Finished task 'Run Build' with result: Success, but when look inside the log we found npm error in one of the task of the npm run build (lerna)
npm ERR! code ELIFECYCLE error 16-Aug-2019 08:31:34 npm ERR! errno 1 error 16-Aug-2019 08:31:34 npm ERR! @lint-ui/ui@20.0.0 build:packages: `lerna run build --stream --concurrency 10` error 16-Aug-2019 08:31:34 npm ERR! Exit status 1 error 16-Aug-2019 08:31:34 npm ERR! error 16-Aug-2019 08:31:34 npm ERR! Failed at the @lint-ui/ui@20.0.0 build:packages script. error 16-Aug-2019 08:31:34 npm ERR! This is probably not a problem with npm. There is likely additional logging output above. error 16-Aug-2019 08:31:34 error 16-Aug-2019 08:31:34 npm ERR! A complete log of this run can be found in: error 16-Aug-2019 08:31:34 npm ERR! /root/.npm/_logs/2019-08-16T15_31_34_121Z-debug.log error 16-Aug-2019 08:31:34 ERROR: "build:packages" exited with 1. error 16-Aug-2019 08:31:34 npm ERR! code ELIFECYCLE error 16-Aug-2019 08:31:34 npm ERR! errno 1 error 16-Aug-2019 08:31:34 npm ERR! @lint-ui/ui@20.0.0 build: `run-s clean bootstrap build:**` error 16-Aug-2019 08:31:34 npm ERR! Exit status 1 error 16-Aug-2019 08:31:34 npm ERR! error 16-Aug-2019 08:31:34 npm ERR! Failed at the @lint-ui/ui@20.0.0 build script. error 16-Aug-2019 08:31:34 npm ERR! This is probably not a problem with npm. There is likely additional logging output above. error 16-Aug-2019 08:31:34 error 16-Aug-2019 08:31:34 npm ERR! A complete log of this run can be found in: error 16-Aug-2019 08:31:34 npm ERR! /root/.npm/_logs/2019-08-16T15_31_34_142Z-debug.log simple 16-Aug-2019 08:31:35 Finished task 'Run Build' with result: Success
Hi @vincent ,
Welcome to the Community!
What type of task are you using to run the npm build? I have seen cases where using a script task will report a success if you don't catch and throw the npm error as the "script" exited cleanly and that is what was reported as the success.
I hope that helps!
-Jimmy
That looks like you are running an inline script task?
If so you might want to add some error handling to catch the npm error and throw an exception and break execution, which should send a failure signal to the bamboo agent running that job.
I hope that helps!
-Jimmy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.