Serverless deploy task will hang the Bamboo deployment job forever

Hi,

We just migrated our Lambda applications to Serverless v1.4, and the app will be deployed by the Bamboo deployment with an NPM script which will call the “serverless deploy”. The problem with it is the Bamboo deployment will hang there forever, but the Serverless deploy will succeed.

I googled for a while got something like the underlying NPM or serverless deploy don’t close the stdout when they’re done their executions.

Does anyone have any idea how we can solve this problem? Or what’s the best practice of using Serverless with CI servers?

Thanks.