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

Why is bitbucket pipelines very slow?

Fernane Zohair
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 19, 2021

Since last week pipelines are very slow, especially the following tasks for each step:

  • starting the agent
  • cloning

I went from 2 minutes to 6 - 8 minutes per deployment. Have you also experienced the same issues?

4 answers

1 accepted

3 votes
Answer accepted
kw
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 19, 2021

Yes, I can confirm that my pipelines are also awfully slow today, some are failing on git checkout :(

Andrei Kazantsev
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 20, 2021

Yes, we've confirm that too, start for every step become incredibly slow,

clonning from repo takes from 10 up to 20 min

Screenshot from 2021-04-20 16-37-42.jpg

 

Like # people like this
Fernane Zohair
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 20, 2021

Well, at least I am glad to read that. I hope they will fix that soon...

0 votes
obrizan
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!
July 20, 2024

From my personal experience: I use Bitbucket Pipelines daily for 7+ years, sometimes delays in provisioning and build setup happens.

Recently I've started a separate project to monitor Bitbucket Pipelines performance (CIPerf). This project automatically pushes changes to a repository hourly. The pipeline is triggered. Average time between push is over and the very first line of "script" section is 25 seconds, lowest is 18 seconds, and there are several worst cases: 03:28, 01:16, 00:59. So it proves that sometimes Bitbucket Pipelines may cause a significant delays with build setups.

 

Screenshot 2024-07-20 at 16.25.04.png

Couple ideas how to optimise build setups:

  1. Set Git clone option to 1 (in your log it is 50). So Bitbucket will checkout only the very recent version of your repository, not 50 previous versions. Git clone behavior/Depth.
  2. Disable caches downloading (in case you don't need them).
  3. Try different Docker images, e. g. use *-alpine versions of images. Alpine images are 5-10 times smaller than default images, so they will be fetched faster.
  4. Hope it helps to speed-up your pipelines jobs. 
0 votes
Attila Szeremi
Contributor
January 23, 2023

Yes, Bitbucket Pipelines steps have had huge overhead since I starting using them 3 years ago.

And because of that, despite it being a bad practice, I'm doing everything in a single step, otherwise my 6 minute build time would take 8 minutes or more.

0 votes
Jon Blaze
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!
July 3, 2021

Can confirm that the build time has increased dramatically.

My usual build time used to be under 2 minutes, now for some odd reason it is now taking a little over 6 minutes.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events