I am running a docker command in Bitbucket pipeline to build an image.
It is a typescript project using tsc to build the project but the pipeline keeps failing at tsc with following error:
#21 345.7 Problem executing tsc
#21 345.7 Error during build undefined
#21 345.7 error Command failed with exit code 1.
Hi Puja and welcome to the community!
The error message you posted here doesn't specify the cause, so we can't determine what is causing this without additional info.
One possible cause that I can think of is that the docker service may not have enough memory. Service containers get 1024 MB memory by default. You can adjust this to a larger value and see if that resolves the issue. The memory allocated to the Docker service can be adjusted with the following definition in your bitbucket-pipelines.yml file (the value is in MB)
definitions:
services:
docker:
memory: 2048
If you have a regular 1x size step and no other services in this step, you can allocate up to 3072 MB to the docker service container.
If this doesn't help, you can create a ticket with the support team and provide the build URL for further investigation. The support ticket will be visible only to you and Atlassian staff, so anything you post there won't be publicly visible.
You can create a ticket via https://support.atlassian.com/contact/#/, in "What can we help you with?" select "Technical issues and bugs" and then Bitbucket Cloud as product. When you are asked to provide the workspace URL, please make sure you enter the URL of the workspace that is on a paid billing plan to proceed with ticket creation.
Kind regards,
Theodora
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.