Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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 - https://confluence.atlassian.com/bamkb/how-to-commit-and-push-to-a-git-repo-during-a-build-720641378.html

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

I just found an easier way to do this. https://confluence.atlassian.com/bamboo/configuring-a-source-control-task-956167494.html.

 

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
TAGS
Community showcase
Published in Bamboo

Bamboo 7.2 is here!

I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...

498 views 5 7
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