Can two jenkins plugin that are extending RtcExtensionProvider can run in same build?
I have two plugins that are extending RtcExtensionProvider. Let's call plugin A and plugin B.
Does anyone face this issue before? Is this known issue or do I miss any configuration?
I'm using jenkins server version 2.176.1 and Team Concert plugin version 1.2.0.5
|
Accepted answer
TeamConcert plugin invokes only one instance of RTCExtensionProvider even when there are multiple plugins that extend RTCExtensionProvider. It gets the list of all RTCExtensionProvider plugins and invokes the very first plugin which returns true for "com.ibm.team.build.internal.hjplugin.extensions.RtcExtensionProvider.isApplicable(Run<?, ?>)".
Anbe Pham selected this answer as the correct answer
Comments
Anbe Pham
commented Jul 09 '19, 6:36 a.m.
Do you know which criterias are used to sort all RTCExtensionProvider plugins, since my both plugin are applicable but plugin A is always invoked although I changed their names, ids and install order.
The extensions are returned by jenkins.model.Jenkins.getInstance().getExtensionList() API. Would be better to post the query regarding the order of the returned extensions in the Jenkins forum.
|
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.