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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,559,422
Community Members
 
Community Events
184
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
DPKJ
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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
AUG Leaders

Atlassian Community Events