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
Community Members
Community Events
Community Groups

bitbucket pipeline yaml file not working

Hi .. 

I have already a bitbucket yaml file working for compiling an embedded project ... 

I tried to run the compile step only for a specific branches .. 

But it is not working .. . 

How can I fix it ? 


Thanks a lot 



# This is an example Starter pipeline configuration
# Use a skeleton to build, test and deploy using manual and parallel steps
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
  name: lpodkalicki/stm32-toolchain
  username: simogaspa84
  password: **************

    - parallel:
      - step:
          name: 'Build and Test'
            - sed -i -E 's/[A-Z]:\\.*\\workspace_[^\\]+\\[^\\]+\\/..\//' Debug/makefile
            - make -C Debug all
      - step:
          name: 'Lint'
            - echo "Your linting"
      - step:
          name: 'Security scan'
            - echo "Your security scan goes here..."

    # The following deployment steps will be executed for each pipeline run. To configure your steps and conditionally deploy see
    - step:
        name: 'Deployment to Staging'
        deployment: staging
          - echo "Your deployment to staging script goes here..."
    - step:
        name: 'Deployment to Production'
        deployment: production
        trigger: 'manual'
          - echo "Your deployment to production script goes here..."


1 answer

0 votes
Caroline R Atlassian Team Nov 03, 2021

Hi, @simone.gasparella

Thank you for reaching out to Atlassian Community!

I understand that you would like to run Pipelines on specific branches, but that is running on all branches, is that correct?

Checking the YML file you shared with us, it doesn’t seem to be valid as you are specifying "branches" and "default" in the same section.

Could you please remove the default word from the YML and see if the pipeline works for {master,feature/development} branches?

I hope this helps, but do let me know if you have any questions. 

Kind regards,

Suggest an answer

Log in or Sign up to answer
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,231 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