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

Is there an equal to SCMPlatform class in server API?

Hi,

I've been extending some features in order to streamline the deployment process and at this stage I would like to make a participant that is activated when changing state. The participant would trigger a build, just like the one in the RTC extensions workshop. However, the build will run against a variety of workspaces.

So far I have managed to change programmatically the workspace that the builddef uses to run the build, but I couldn't get the Workspace by name using server API.

On another post someone asked something alike and the answer was related to com.ibm.team.scm.client.SCMPlatform class.

Is there some class that could be used on the server API that would offer the same results?

0 votes


Accepted answer

Permanent link
IScmService

I have a deliver plugin that will launch a script and pass it parameters.. just like a git/svm commit hook.

see the last post here
https://jazz.net/forum/questions/132739/jenkins-polling-is-too-slow-can-rtc-notify-jenkins-immediately

note the post before this one does RTC build launching, while mine is open to use any tooling.

Manuel Felipe Amaya selected this answer as the correct answer

0 votes


One other answer

Permanent link
I could not find the answer in the related post:

IScmService

I have a deliver plugin that will launch a script and pass it parameters.. just like a git/svm commit hook.

see the last post here
https://jazz.net/forum/questions/132739/jenkins-polling-is-too-slow-can-rtc-notify-jenkins-immediately

note the post before this one does RTC build launching, while mine is open to use any tooling.



While reading the methods of IScmService I found no way to fetch the repository based on a IWorkspaceSearchCriteria:

SCMPlatform.getWorkspaceManager(repo).findWorkspaces(criteria, IWorkspaceManager.MAX_QUERY_SIZE , null);

How can I search for a workspace with ScmService?

0 votes

Comments

Server side SCM Search is in a different serviceĀ  IScmQueryService

the referenced post was describing two solutions already built that do what you are trying to do

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,953
× 40

Question asked: Jan 22 '16, 10:21 a.m.

Question was seen: 3,426 times

Last updated: Jan 22 '16, 12:02 p.m.

Confirmation Cancel Confirm