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

Excute requesting build with command line when using RTC

Hi,
I'd like to use RTC to build my project, I usually use client to excute requesting build on build definition.
Can I use command line instead of client to request build?
If yes could you tell me the command and how to use, thank you!

0 votes



One answer

Permanent link
Hi,
I'd like to use RTC to build my project, I usually use client to excute requesting build on build definition.
Can I use command line instead of client to request build?
If yes could you tell me the command and how to use, thank you!


Hi,

There is an Ant task named requestTeamBuild that allows for requesting a build. The link below will take you to the documentation and then search for requestTeamBuild.

http://publib.boulder.ibm.com/infocenter/clmhelp/v3r0/index.jsp?topic=/com.ibm.rational.clm.doc/helpindex_clm.html

Another option would be to code a Java program to request a build. The API calls look similar to the code below. You will need to download the RTC SDK to use this option.

        ITeamBuildClient buildClient = (ITeamBuildClient) teamRepository.getClientLibrary(ITeamBuildClient.class);

IBuildDefinition buildDefinition = buildClient.getBuildDefinition(buildDefinitionId, monitor);

ITeamBuildRequestClient requestClient = (ITeamBuildRequestClient) teamRepository.getClientLibrary(ITeamBuildRequestClient.class);
IBuildRequest buildRequest = requestClient.requestBuild(buildDefinition, true, monitor);


Best regards,

Brent Ulbricht
Developer/Lead - RTC Build

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: Mar 08 '11, 9:43 a.m.

Question was seen: 5,687 times

Last updated: Mar 08 '11, 9:43 a.m.

Confirmation Cancel Confirm