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

Is it possible to increase the timeout for Bitbucket Pipelines?

Sarthak Balasaheb Varpe
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!
December 26, 2023

Hello,

I am currently running the Bitbucket Pipeline for integrating with SonarCloud. The pipeline execution takes more than 2 hours, resulting in a failure. I would like to know if it's possible to increase the pipeline timeout.

Thank you.

3 answers

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

You can extend it up to 120min now using max-time

0 votes
Aron Gombas _Midori_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 27, 2023

One thing you could try is increasing the memory and CPU power to the double with:

size: 2x

See more details here.

It will accelerate the execution of the pipeline, so it may also help to fit the max allowed duration. 

0 votes
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 27, 2023

Hello @Sarthak Balasaheb Varpe and welcome to the Community!

Currently, a pipeline step is limited to a max execution time of 120 minutes (2 hours). Exceeding that limit will make the pipeline timeout. We do have a feature request with our development team to increase this time for both the cloud runners (builds that are executed in Atlassian's infrastructure) and self-hosted runners : 

We recommend adding your vote there, as it helps our product managers to understand the demand for new features. You can also add yourself as a watcher to be notified of any updates on the development of that feature.

In the meantime, since the limit is step-based, in case you are running multiple commands in a single step, try to divide these commands into multiple steps, as each step will have a 2-hour limit. 

Thank you, @Sarthak Balasaheb Varpe !

Patrik S

Suggest an answer

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

Atlassian Community Events