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,298,560
Community Members
 
Community Events
165
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.
image:
  name: lpodkalicki/stm32-toolchain
  username: simogaspa84
  password: **************
  email: simogaspa84@gmail.com

pipelines:
   branches:
    '{master,feature/development}':
  default:
    - parallel:
      - step:
          name: 'Build and Test'
          script:
            - sed -i -E 's/[A-Z]:\\.*\\workspace_[^\\]+\\[^\\]+\\/..\//' Debug/makefile
            - make -C Debug all
      - step:
          name: 'Lint'
          script:
            - echo "Your linting"
      - step:
          name: 'Security scan'
          script:
            - 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 https://support.atlassian.com/bitbucket-cloud/docs/configure-bitbucket-pipelinesyml/
    - step:
        name: 'Deployment to Staging'
        deployment: staging
        script:
          - echo "Your deployment to staging script goes here..."
    - step:
        name: 'Deployment to Production'
        deployment: production
        trigger: 'manual'
        script:
          - 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,
Caroline 

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,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