Are you in the loop? Keep up with the latest by making sure you're subscribed to Community Announcements. Just click Watch and select Articles.

×
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

How do you trigger a build from one repository to another repository.

I have a repository that contains the source code for a library that we use in multiple applications. I have a pipeline configured to build that library whenever a commit is made to that library. Since multiple applications, which happen to reside in different repositories, depend on this library, I would like to automatically launch a build for those repositories. How would I accomplish this?

2 answers

1 accepted

0 votes
Answer accepted
Max Binnewies
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 01, 2020

Hello dcosta,

there is a Pipe for that: https://bitbucket.org/atlassian/trigger-pipeline/src/master/

Hope that helps, let me know you have any more questions around this,

Max

Thanks for that link. I did follow that example, however, the build fails with the following error:  

✖ Validation errors:
BITBUCKET_APP_PASSWORD:

  • null value not allowed

I have defined BITBUCKET_APP_PASSWORD as indicated below:

App passwords
App passwords allow two-step verification users to access their Bitbucket account through apps such as Sourcetree. We'll generate the app passwords for you, and you won't need to remember them.

Create app password

Label Created Last accessedActions
BITBUCKET_APP_PASSWORD 5 days ago Revoke

Max Binnewies
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Mar 04, 2020

You need to inject the app password into the pipeline and replace the placeholder with the value.

For that you can use a variable (https://confluence.atlassian.com/bitbucket/variables-in-pipelines-794502608.html) Make sure to use a secured variable.

Hi Max,

Thanks for your help. I eventually resolved the issue by adding both BITBUCKET_USERNAME and BITBUCKET_APP_PASSWORD as account variables to my team settings, I did make BITBUCKET_APP_PASSWORD a secured variable.

Thanks again

Dennis

The correct variable name for BITBUCKET_USERNAME is BITBUCKET_USER_NAME and user should've minimum of `Repository Read` and `Pipeline write` permissions.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events