It's all about the answers!

Ask a question

ITeamBuildService, IBuildRequest


Eric Shen (61) | asked Feb 07 '09, 10:28 p.m.
I am creating a Save WorkItem followup action on the server side. this is a server side plugin and it needs to access to the build service to trigger a build request. I tried IteamBuildService or IBuildRequest. They don't work. Is ths the right way to implement? Did I miss something here?


ITeamBuildService service = getService(ITeamBuildService.class);

or

IBuildRequest service = getService(IBuildRequest.class);



Dependency of this plugin:
com.ibm.team.build.common
com.ibm.team.build.service
com.ibm.team.process.common
com.ibm.team.process.service
com.ibm.team.repository.common
com.ibm.team.repository.service


here is the exception:

The service 'com.ibm.team.build.internal.service.TeamBuildService@5f2e5f2e' failed to find the required service 'interface com.ibm.team.repository.common.service.IQueryService'. Check <prerequisites> in plugin.xml.

One answer



permanent link
Don Weinand (7851) | answered Feb 10 '09, 10:28 a.m.
JAZZ DEVELOPER
The actual service to use would be ITeamBuildRequestService. There are
methods on there that provide the ability to request builds. That service
is currently internal though so if you choose to use it anyways there is no
guarantee your code will not be broken as things evolve.

Don Weinand
Jazz Team Build

"eshen" <eshen> wrote in message
news:gmlk2g$cdv$1@localhost.localdomain...
I am creating a Save WorkItem followup action on the server side.
this is a server side plugin and it needs to access to the build
service to trigger a build request. I tried IteamBuildService or
IBuildRequest. They don't work. Is ths the right way to implement?
Did I miss something here?


ITeamBuildService service = getService(ITeamBuildService.class);

or

IBuildRequest service = getService(IBuildRequest.class);



Dependency of this plugin:
com.ibm.team.build.common
com.ibm.team.build.service
com.ibm.team.process.common
com.ibm.team.process.service
com.ibm.team.repository.common
com.ibm.team.repository.service


here is the exception:

The service
'com.ibm.team.build.internal.service.TeamBuildService@5f2e5f2e'
failed to find the required service 'interface
com.ibm.team.repository.common.service.IQueryService'. Check
prerequisites> in plugin.xml.

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.