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

How do I push code changes to bitbucket from bamboo build pipeline?

I have some extra lines of code that I want to be added to repository during the build pipeline. 

So, I want to introduce a stage in build pipeline in bamboo which allows me to make changes to files and commit them to bitbucket.

1 answer

1 vote
DPK J Community Leader Feb 18, 2020

@Biplav Timalsina  Welcome to the community!

Best way I can think of doing this by adding Script Task to your build process. In this task you can add a script to,

  1. Add a file or make change to specific file you want.
  2. Make a commit, and
  3. push to desired repository.

I referred this document for help -

Thank you for your response. I think this will work.

I just found an easier way to do this.


Seems like Bamboo has inbuilt support to push code from build pipeline to repository using the source control task.

Thank you tons!

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bamboo

Bamboo 9.0 is now available

Hey there, Data Center community! I'm Martyna Wojtas and I am the Product Manager for Bamboo Data Center. I’m excited to share that Bamboo 9.0 is now available. We purpose-built this platform to help...

313 views 0 7
Read article

Atlassian Community Events