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

ITeamBuildService, IBuildRequest

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.

0 votes



One answer

Permanent link
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.

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

Question asked: Feb 07 '09, 10:28 p.m.

Question was seen: 8,001 times

Last updated: Feb 07 '09, 10:28 p.m.

Confirmation Cancel Confirm