The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Parameterized child build

fejese
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 4, 2015

Hi,

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: https://wiki.jenkins-ci.org/display/JENKINS/Parameterized+Trigger+Plugin)

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Felipe Kraemer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 29, 2015

Hello @Endre Fejes, 

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

Kind regards,
Felipe Kraemer

TAGS
AUG Leaders

Atlassian Community Events