Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Npm Run Build Does not Fail Pipelines on Build Error (for React builds)

Jim Glenn July 14, 2021

We have created a pipeline to build a react website.

 

We followed steps to create a pipeline similar to the instructions on this page.

https://support.atlassian.com/bitbucket-cloud/docs/use-artifacts-in-steps/

We are specifically using the image:

image: node:10.15.3

We have steps like this:

step: &buildTest
script:
- npm install
- npm run build

 If we have pushed up to bitbucket and forgot to add a file in the push, the build will fail.

The pipeline does not pick up this failure and just keeps running (and using all our build minutes, until we either catch it or it times out.)

It would be extremely useful if the pipelines could detect these failures to stop the pipeline (and/or if we could decide the timeout values for these pipelines).

Screen Shot 2021-07-15 at 12.01.07 AM.png

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events