Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

i want to reduce the build time, using mvn right now.

shashank_pandey July 17, 2025

On local it takes 1.5 mins and on bitbucket it takes 3 mins.

1 answer

1 accepted

1 vote
Answer accepted
Aron Gombas _Midori_
Community Champion
July 17, 2025

Are you already caching your Maven dependencies? It is a game changer.

 

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 20, 2025

Hi @shashank_pandey 

If your memory settings in your YAML config are less than your available memory in your local environment - this would affect the build time. You might want to take a look at the size option in your step configuration if this is the case:

If you're still encountering issues - please raise a support ticket so we can troubleshoot this further with you:

Cheers!

- Ben (Bitbucket Cloud Support)

shashank_pandey July 23, 2025

@Aron Gombas _Midori_ i am already caching Maven Dependencies. 

shashank_pandey July 23, 2025

@Ben I am currently using 4x.

Another thing is that for some pipelines, when i run the tests again and again the time is same for the some pipelines. But for some pipelines it is sometimes 1 min 25s and some times 1 min 40s (huge time gap), it shouldn't be happening. (i am talking here about execution time of the tests, not the bitbucket pipeline whole time)

Same Pipeline:

1st time 

Screenshot 2025-07-24 at 11.30.51 AM.png

2nd time

Screenshot 2025-07-24 at 11.28.50 AM.png

Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 24, 2025

Hi @shashank_pandey 

I have raised a support ticket on your behalf with our support team. In future, for any troubleshooting on pipelines issues - we require a support ticket to be raised so that we can grant ourselves access to your workspace and check your build environment/logs (our system requires this):

Please check your email for further correspondence.

Cheers!

- Ben (Bitbucket Cloud Support)

 

Suggest an answer

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

Atlassian Community Events