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

Pipeline is too slow or appears like hung when Maven Unit tests are run

Krishna Mukdapu
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 17, 2020

We have quite a large set of unit tests and the total time needed to run all unit tests is about 25 minutes when tests are run on a developer machine. However, the same unit tests when run through Bitbucket Pipeline, it appears to be running forever and build fails due to time out (as the build timeout is set to 120 minutes). Can an expert advise how Bitbucket Pipeline can be configured to run my tests quicker? Please find the Pipeline our config YAML file for your reference. We tried with/without size: 2x and did not notice much difference. Our expectation is to finish running tests in ~ 25 mins (or less, if possible) and the current situation is that it seems to be taking > 120 mins and the build is timing out.

 

pipelines:
branches:
dev:
- step:
size: 2x
name: Deploy to Development
deployment: development
caches:
- maven
script:
- cd <project folder>
- mvn clean install 

 

1 answer

3 votes
Josh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 5, 2022

2 years later same issues lol

Ismoil Shokirov
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 26, 2023

almost 3 years later, nothing changed lol

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events