Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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 to integrate TeamCity CI/CD with Bitbucket

With the introduction of Integrated CI/CD in Bitbucket Server & Data Center 7.4, Atlassian made a massive step towards the unification of the development processes, allowing developers to focus on things that matter instead of wasting time switching tools. The platforms supported out-of-the-box already include Bamboo and Jenkins, and today we want to show how this list can be extended to benefit TeamCity users as well.

The TeamCity Integration for Bitbucket app by Stiltsoft allows you to:

  • View build results
  • Access logs and artifacts via direct links
  • Act on builds in your TeamCity server from Bitbucket

Screen Shot 2021-04-20 at 1.38.24 PM.png

Link Bitbucket with TeamCity

To get access to all the features offered by the app, you'll need to link your TeamCity and Bitbucket accounts using the access tokens.

First, go to your TeamCity profile to create an access token.

Screen Shot 2021-04-20 at 1.39.11 PM.png

Then you need to add this token to your Bitbucket profile.

Click on your avatar in the header and then on Manage account. Choose the TeamCity tab in the navigation bar, and add the token!

Screen Shot 2021-04-20 at 1.40.04 PM.png

 

After you've linked your TeamCity and Bitbucket accounts, you'll need to edit your build configuration in TeamCity and add Commit Status Publisher to it.

Go to the Configuration Settings on a build page, choose the Build Features.

Screen Shot 2021-04-20 at 1.40.48 PM.png

 

Add Commit Status Publisher and set it up for Bitbucket.

Screen Shot 2021-04-20 at 1.41.48 PM.png

Run builds, view logs, download artifacts

Now, that the setup is complete you can finally begin to reap the benefits of this integration!

On the Builds page, you can view build statuses, links to logs and artifacts, as well as perform build actions. At the moment, the list of actions include:

  • Build the latest commit — running a build for the latest commit in a branch
  • Re-build this commit — re-running a build for a particular commit

Screen Shot 2021-04-20 at 1.42.42 PM.png

You'll also see build statuses on the Pull request, Commits, and Branches pages. If you click on any status icon there, it will take you to the Builds page pre-set to show builds information for each commit in a pull request, for a particular commit or a branch, respectively.

Screen Shot 2021-04-20 at 1.43.22 PM.png

Screen Shot 2021-04-20 at 1.43.37 PM.png

TeamCity Integration for Bitbucket is available in the Marketplace for both Server and Data Center customers. If you have any questions about the app or feedback, feel free to comment below!

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket Pipelines

Bitbucket Pipelines Runners is now in open beta

We are excited to announce the open beta program for self-hosted runners. Bitbucket Pipelines Runners is available to everyone. Please try it and let us know your feedback. If you have any issue...

768 views 15 10
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