nx-plugins icon indicating copy to clipboard operation
nx-plugins copied to clipboard

Deploy fails to execute in Codebuild

Open gdowmont opened this issue 3 years ago • 0 comments

Hey.

I am trying to use the plugin in AWS CodeBuild as part of the pipeline.

It fails with the following:

/codebuild/output/src304675747/src/node_modules/@codebrew/nx-aws-cdk/src/utils/executor.util.js:56
--
process.stdin.end();
 ^
  
TypeError: process.stdin.end is not a function
at ChildProcess.<anonymous> (/codebuild/output/src304675747/src/node_modules/@codebrew/nx-aws-cdk/src/utils/executor.util.js:56:27)
at ChildProcess.emit (events.js:387:35)
at maybeClose (internal/child_process.js:1055:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

CodeBuild is non-TTY environment and it looks like the fix added here https://github.com/codebrewlab/nx-plugins/commit/b5ef5c70283fc4652d86138b0470d40dba055ec9 might be what is causing the issue as it always tries to execute this:

process.stdin.end();
process.stdin.removeListener('data', processExitListener);

gdowmont avatar Apr 05 '22 09:04 gdowmont