Parameterized child build


We have a project split in two components: core and application where application depends on core. For both we have configured on-commit builds to run tests.

We use gradle to build these components and there's a parameter that can override which version of core should the application use.

What we'd like to achieve is when there's a successful build of core (which includes a snapshot release to Artifactory) then the application component should be built as well with the latest snapshot.

Now it would be possible to duplicate the application build plan so we'd have:

  • one without overriding for testing changes only on application using the last stable version of core referenced in application
  • and one with overriding core version to latest snapshot to test whether changes in core does not break application.

The problem is that the build plan for application is quite extensive and might change frequently so maintaining two very similar plans is undesired. Also there are multiple projects like this so the plan maintenance overhead would be quite significant.

One solution would be if the core plan would be able to trigger the application plan with setting some sort of flag or parameter. Is this possible? (Basically an equivalent of this Jenkins plugin:

1 answer

This widget could not be displayed.

Hello @Endre Fejes, 

I believe you're looking for Plan Dependencies. Have you tried that?

Kind regards,
Felipe Kraemer

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Tuesday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

122 views 1 3
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you