Request a build programmatically
![]()
Michele Pegoraro (1.8k●12●114●102)
| asked Aug 06 '09, 7:24 a.m.
retagged Dec 16 '13, 11:53 a.m. by David Lafreniere (4.8k●7)
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
![]()
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.
|
![]()
I've done:
https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=94143 |
![]()
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.
|
![]() 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? |
![]()
I find these two service which can be used:
Is there any other way to retrieve them using a method from other object? |
![]()
If you do end up using these, please file API enhancement requests against the Build component, clarifying your use case.
|
![]()
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.
|
![]()
Yes the problem is resolved. Thanks for all of your help
|