Is a tool installation axis in a matrix project possible?

33 views
Skip to first unread message

Kaz Nishimura

unread,
Nov 26, 2014, 8:02:06 PM11/26/14
to jenkin...@googlegroups.com
I would like to add a tool installation axis for Matrix Project Plugin.  As a specific tool installation is not installed on every node, the new axis must restrict nodes that can run a build.  I have not found a way to do it, so I ask if it is possible to implement.  Does anyone have an answer?

oliver gondža

unread,
Nov 27, 2014, 12:59:46 PM11/27/14
to Kaz Nishimura, jenkin...@googlegroups.com
On Thu, 27 Nov 2014 02:02:06 +0100, Kaz Nishimura <kaz...@vx68k.org>
wrote:
The easiest way I can think of to restrict build based on tool requirement
is introducing new interface, say ToolConsumer. Job and its configurable
entities will optionally implement the interface and list tool
types+versions it requires. In your case Axis will implement the interface
and declare to consume tools user configured. Job will only be triggered
on such a slave that provides all tools Job and all build
steps/parameters/axes/whatever declared.

I guess there is no fast way to see if tool is/can be installed on given
node, NodeMonitor to check that periodically might be needed.
--
oliver

Kaz Nishimura

unread,
Nov 27, 2014, 7:56:03 PM11/27/14
to oliver gondža, jenkin...@googlegroups.com

I use tool paths the user added for a node to determine if the tool is installed. Can I construct a label expression in a custom axis to restrict nodes?

Kaz Nishimura

unread,
Nov 27, 2014, 10:05:14 PM11/27/14
to jenkin...@googlegroups.com, oliver gondža

FYI, as I wrote Tool Labels Plugin, I can now restrict nodes by labels dynamically added for tool installations. I just want a way to choose a tool installation by an axis.

Reply all
Reply to author
Forward
0 new messages