Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,293,389
Community Members
 
Community Events
165
Community Groups

How do I set 8x step build on my bitbucket-pipelines.yml at the definitions part using slf hosted??

Edited

i tried to use this 8x feature on my bitbucke pipelines just putting size: 8x but it seems that it didn't use 32gb because my docker build does not run till the end. 

that build nowadays works in this way:

 

definitions:
services:
# Define the default Docker service with 2 GB memory limit
docker:
memory: 1024
# Define the Docker service which requires 6 GB memory
docker-7g:
# You will have to define the service type if it is docker
type: docker
memory: 7168
pipelines:
custom:
sandbox:
- step:
name: Push
image: atlassian/pipelines-awscli
# Pass the Docker service with 7 GB
services:
- docker-7g
.
.
.
.
but i would like to have the possibility os using more than 7gb if it would be possible as the bitbucket documentations says here:
"

Usage limits

The following are the usage limits or quotas applied to Bitbucket Pipelines Runners:

  • Step build time. Similar to Cloud, there is a maximum build time of 120 minutes per step. To reduce the total run time, we recommend using more parallel steps within your CI/CD workflow.

  • Max available memory. With Runners, you can configure up to 32GB (8x) of memory to run your builds.     "

that's the link:  https://support.atlassian.com/bitbucket-cloud/docs/runners/

 

 

1 answer

0 votes
Patrik S Atlassian Team Jun 14, 2022

Hello @Joao Moyses Moura Alves ,

Thank you for reaching out to Atlassian Community! 

The documentation you have linked is for Pipelines Runners, meaning that it is specific for the case where you run your build step in your own infrastructure. For steps that run in the Bitbucket infrastructure, you can only go up to 2x. For steps that use Runners and are executed in your own infrastructure, you can set to 2x, 4x, and 8x.

In this case, if you want more than 7GB for your docker service, you need to use Runners to run your build step.

First, you will need to create a runner either in your repository or workspace, and start it on your own infrastructure :

And then you will have to configure the steps you want to be executed in the runner by adding the runs-on keyword in the bitbucket-pipelines.yml file, like the below example : 

pipelines: 
default:
- step:
runs-on:
- 'self.hosted'
- 'my.custom.label'
size: 8x
script:
- echo "This step will run on a self hosted runner with 32 GB of memory."

Reference: https://support.atlassian.com/bitbucket-cloud/docs/configure-your-runner-in-bitbucket-pipelines-yml/

Hope that helps! Let me know in case you have any questions.

Thank you, @Joao Moyses Moura Alves .

Kind regards,

Patrik S

hey Patrik

 

I think i tried it but i might have done it wrongly. iĺl try it again and se what happens.

 

Thanks

Like Patrik S likes this

Hey Patrik

 

Thatś what i was looking for.

 

Thanks.

Like Patrik S likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,087 views 2 9
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you