It's all about the answers!

Ask a question

Request a build programmatically


Michele Pegoraro (1.8k14118103) | asked Aug 06 '09, 7:24 a.m.
retagged Dec 16 '13, 11:53 a.m. by David Lafreniere (4.8k7)
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?

8 answers



permanent link
Nick Edgar (6.5k711) | answered Sep 09 '09, 3:01 p.m.
JAZZ DEVELOPER
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.

permanent link
Michele Pegoraro (1.8k14118103) | answered Sep 10 '09, 4:13 a.m.
I've done:
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=94143

permanent link
Michele Pegoraro (1.8k14118103) | answered Aug 29 '13, 6:11 a.m.
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.  

permanent link
Michele Pegoraro (1.8k14118103) | answered Aug 24 '09, 5:59 a.m.
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?

permanent link
Michele Pegoraro (1.8k14118103) | answered Aug 31 '09, 8:28 a.m.
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?

permanent link
Nick Edgar (6.5k711) | answered Sep 09 '09, 3:02 p.m.
JAZZ DEVELOPER
If you do end up using these, please file API enhancement requests against the Build component, clarifying your use case.

permanent link
Kelvin Lui (51299) | answered Aug 13 '13, 12:33 a.m.
 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.

permanent link
Kelvin Lui (51299) | answered Aug 29 '13, 10:33 a.m.
 Yes the problem is resolved.  Thanks for all of your help

Your answer


Register or 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.