My Node builds on bitbucket pipelines are inconsistent.

Shoaib Khan December 11, 2024

Hi Team, 

 

I have been trying to build and containerize a node application using bitbucket pipelines and I'm getting inconsistent results when I run them. 

I'm using nextjs:22 image in the pipeline.

For the same code checked in, with same dockerfile, the build was successful once, but whenever I'm running the pipeline again its failing due to various reasons like:

  • Exceeded build time limit of 120 minutes.
  • <some command in pipeline> did not complete successfully: exit code: 1

With this inconsistent results for same code, I'm confused where the problem lies exactly.

Did someone else also faced similar issue with node applications.

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 15, 2024

Hi Shoaib,

What happens when you re-run the previously successful build? Also, are you able to downgrade the node image by checking a previously successful build image SHA in the build setup and copy + pasting it into your YML configuration next to the image tag?

If both result in failing builds, please raise a ticket with us directly using your Premium company workspace URL as we will need to access your repository and check your YML/build history to troubleshoot further:

If you encounter issues raising the ticket, please let me know your timezone so I can raise one on your behalf.

Cheers!

- Ben (Bitbucket Cloud Support)

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events