I'm using bitbucket pipelines to admin deploys to master. Normally, it spend from 10 to 15 seconds to make deploy, but today, im having problems with it.
Pipeline have been deployed on 4 minutes, all of it time ocurr on build setup section.
I dont change anything on bitbucket-pipelines.yml so... I dont know why it is happened?
Can you help me?
Thanks in advance
This happens because Bitbucket Pipelines can't guarantee the performance of underlying infrastructure.
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.
Couple ideas how to optimise build setups:
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.
Disable caches downloading (in case you don't need them).
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.
Here is a detailed guide How to Optimise Bitbucket Pipelines test setup.