Michael
Michael

Reputation: 2972

Publish two plans related to each other

I want to publish two plans that are related to each other. But this doesn't work as Bamboo throws an error because the related plan doesn' exist yet.


bambooServer.publish(planParent); // fails because planChild doesn't exist
bambooServer.publish(planChild);

// ---

bambooServer.publish(planChild); // fails because planParent doesn't exist
bambooServer.publish(planParent);

How to publish those two plans?

Upvotes: 1

Views: 76

Answers (1)

Michael
Michael

Reputation: 2972

Looks like there is no better way than doing it in two steps.

  1. Publishing the plans without the child plan dependencies
  2. Publish the plans again including the child plan dependencies.

This worked for me.

Upvotes: 1

Related Questions