It's all about the answers!

Ask a question

Usage of TeamPlatform in the Team Concert plugin for Jenkins

Rafael Rezende (431823) | asked Apr 18 '16, 11:44 a.m.
The basic question behind the title is: what is the "scope" of a TeamPlatform? Should it be started only once per JVM instance?

The background of my question:
I am using Team Concert plugin for Jenkins, which runs the TeamPlatform.startup() at the very beginning in a static block: (line 39)

According to my search, this plugin never calls the TeamPlatform.shutdown() method, so I assume the TeamPlatform is shut down automatically only when the JVM is finished.

The same plugin provides the RtcExtensionProvider, which is invoked after the changes are accepted into the Repository Workspace, so I believe the TeamPlatform should be already active by then. However, in my own extension I still need to start up the TeamPlatform (taking 5 extra seconds on the master node, and around 20s on any slave node), otherwise, exception.
Shouldn't my extension be able to reuse the same TeamPlatform started by the Team Concert plugin?

One answer

permanent link
Ralph Schoon (63.2k33646) | answered Apr 19 '16, 3:13 a.m.
edited Apr 19 '16, 4:29 a.m.
In Boost Your Automation Performance Using an Automation Server I reuse the TreamPlatform to avoid the penalty. I am not sure if you can access the started TreamPlatform in your case. You can use TreamPlatform.isStarted() to test if it is up already. In the Eclipse extensibility mechanism you can reuse an existing TeamPlatform.

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.