How build minutes/seconds are calculated in Bitbucket Cloud?

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Cloud Only - This article only applies to Atlassian products on the cloud platform.

Summary

If there are two pipelines and each takes 10 seconds, it will be counted as 20 seconds only. However, there are a few exceptions, in which build seconds are calculated more.  

Solution

Consider a pipeline built with two parallel steps, each taking 1 minute to run.

In this scenario:

  • Build duration: 1 minute
  • Build minutes used: 2 minutes (since the parallel steps run simultaneously, the individual build minutes are accounted for separately)

Consider a pipeline build that runs with 2x memory configuration and completes in 1 minute.

In this case:

  • Build duration: 1 minute
  • Build minutes used: 2 minutes (because the 2x memory usage entails 2x build minutes to be accounted for billing purposes)

Consider a pipeline build that runs with 4x / 8x memory configuration and completes in 1 minute.

In this case:

  • Build duration: 1 minute
  • Build minutes used:
    • 4 minutes (because the 4x memory usage entails 4x build minutes to be accounted for billing purposes)
    • 8 minutes (because the 8x memory usage entails 8x build minutes to be accounted for billing purposes)
Last modified on Jul 8, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.