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

Request a build programmatically

I'm searching how to request a build after a work-item has changed his state . On https://jazz.net/wiki/bin/view/Main/BuildJavaProgrammingExamples I've find how to do it on client side but I'd like to do it on server side. All the build services seems to be internal. Which services do I have to use in order to retrieve BuildRequest and BuildDefinition?

0 votes



8 answers

Permanent link
Michele, the Build component does not currently define any APIs on the server side. You may use the internal service interfaces, but there's no guarantee that they won't change in future versions of RTC.

1 vote


Permanent link
I've done:
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=94143

1 vote


Permanent link
I suppose you've already resolve this with topic:
https://jazz.net/forum/questions/67459/how-to-create-an-ibuildproperty-object

Do you still need some help related to this?

Best Regards,
Michele.  

1 vote


Permanent link
I'm searching how to request a build after a work-item has changed his state . On https://jazz.net/wiki/bin/view/Main/BuildJavaProgrammingExamples I've find how to do it on client side but I'd like to do it on server side. All the build services seems to be internal. Which services do I have to use in order to retrieve BuildRequest and BuildDefinition?

Any help?

0 votes


Permanent link
I find these two service which can be used: ITeamBuildRequiredService and ITeamBuildService. These are internal service and so their retrieving using getService method is discourage.
Is there any other way to retrieve them using a method from other object?

0 votes


Permanent link
If you do end up using these, please file API enhancement requests against the Build component, clarifying your use case.

0 votes


Permanent link
 ITeamBuildRequestClient.requestBuild(IBuildDefinitionHandle buildDefinitionHandle,
                           IBuildProperty[] newOrModifiedBuildProperties,
                           IBuildProperty[] deletedBuildProperties,
                           boolean allowDuplicateRequests,
                           boolean personalBuild,
                           IProgressMonitor progressMonitor)

My goal is to submit a personal build.   I have several questions:

how to define the repository workspace as part of the requestBuild parameter 
how to define the Build Properties as part of the requestBuild parameter

Any sample code is appreciated.  Thanks.

0 votes


Permanent link
 Yes the problem is resolved.  Thanks for all of your help

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
× 10,938
× 562
× 169

Question asked: Aug 06 '09, 7:24 a.m.

Question was seen: 9,739 times

Last updated: Dec 16 '13, 11:53 a.m.

Related questions
Confirmation Cancel Confirm