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

Running superproject for library pull request

Hi all,

 

I have bamboo build plan for library triggered when pull request is created. This build plan is used to do some automated checks for pull requests. I want to run some checks also in project, that uses this library as submodule so I need to pass branch of library (based on pull request) to dependend build plan.

IFAIK there is no possibility to pass variables to depenend plan on bamboo so I am looking for other solution. There are more libraries and one superproject so I need to share superproject buildplan between libraries. Is there a standard way how to solve this scenario? Thank you in andvance for any help.

Martin

1 answer

0 votes

How about adding a Script task in library build plan to send a trigger command to superproject build plan like the following example?

curl -u <username>:<password> -X POST http://localhost:8085/rest/api/latest/queue/<projectKey>-<planKey>?bamboo.variable.<variableName>=<newVariableValue>

It can be used to set custom variable value too.

REST API

Thank you, this should solve it. I'll try it.

Suggest an answer

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

Using Bamboo with new Bitbucket Cloud authentication

...roperties: -Dbamboo.bitbucket.cloud.use.workspace.api=true There are patches available for Bamboo versions 6.8.3, 6.9.2, and 6.10.5 on the bug report that add support for the System Property. T...

242 views 0 5
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