Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

RTC Build dependency

Hi,

Does RTC have some sort of dependency funtionality on builds? For instance my organization has multiple java projects using maven to build. We first build "common" project then build project1, then project2.

So currently right now, I have created a build definition of "common" project and another build definition for "project1" and so forth. Is there a way to have RTC, build the definition in a particular order and if any of them fail, stop?

Any advice is greatly appreciated!

Thanks in advance!
-Arnodl

0 votes



2 answers

Permanent link
RTC Build is best thought of a "build tool wrapper". It comes with a
built-in wrapper for common tools like "Ant" or plain command line build
scripts, as well as commercial ones like Build Forge, but it is designed
for you to easily wrap whatever build tools you are currently using.

So that kind of dependency management would be performed by the
underlying build tool that you are wrapping. Make does a really good
job at this ... the other build tools, usually only so-so (:-).

Cheers,
Geoff

On 5/12/2010 3:37 PM, acruz wrote:
Hi,

Does RTC have some sort of dependency funtionality on builds? For
instance my organization has multiple java projects using maven to
build. We first build "common" project then build project1,
then project2.

So currently right now, I have created a build definition of
"common" project and another build definition for
"project1" and so forth. Is there a way to have RTC, build
the definition in a particular order and if any of them fail, stop?

Any advice is greatly appreciated!

Thanks in advance!
-Arnodl

0 votes


Permanent link
I suggest one of two approaches:

1. combine the build for all 3 projects into one build definition (presumably a Maven one)

2. use the requestTeamBuild Ant task to kick off the other builds from the first one. Please see the Ant task reference topic in the client Help. To use this from Maven, you'd need to use the Maven AntRun plug-in

Note that if the builds run on separate machines (i.e. if you have multiple build engines), then the artifacts produced by the first build would need to be made available somehow to the downstream builds, e.g. by putting them in a Maven repository like Nexus.

Regards,
Nick

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: May 12 '10, 3:32 p.m.

Question was seen: 6,825 times

Last updated: May 12 '10, 3:32 p.m.

Confirmation Cancel Confirm