Forums

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

Public Docker Hub image: androidsdk, build setup is very slow

Bogdan Heutschi
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!
September 14, 2022

I have setup pipelines to run some android tests and make some builds, but it seems the build setup step is very slow because of the docker image which should be cached by bitbucket, as I'm using androidsdk/android-31. Duration of the build setup step is 1.5-2 minutes.
One thing I've noticed is that if I tried the same setup in a different repo, with the same settings, the build setup time is < 20s. 
This is the code in bitbucket-pipelines: image: androidsdk/android-31
Do you have any suggestions for improving the build setup part? 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 19, 2022

Hi Bogdan and welcome to the community!

The build setup is doing additional things, like cloning the repo and downloading caches.

Did you watch a build of this repo as it was running, and was it showing to pull images for the majority of these 1.5-2 minutes?

If so, I would suggest creating a ticket with the support team so we can check the Pipelines build log and additional logs from our side, in order to troubleshoot.


If the setup is taking a lot of time on the clone part, and if you are running builds on branches or tags, you can try setting up in your bitbucket-pipelines.yml file the depth of the clone (which is 50 by default) to e.g. 1 if you only need the last commit for the builds:

If the long setup time has to do with caches, you could remove caches, but then your build may take a longer time downloading dependencies.


If the culprit seems to be pulling the Docker image, please create a ticket and provide the URL of a build with this issue and we will look into it. You can open 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.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events