Jason Swager
Jason Swager

Reputation: 6501

Filter the Jenkins executor list to only the active ones

The company I work for uses a large Jenkins server with a large number of slaves to handle the build and testing for a particular product. The large number of slaves, many with numerous executor slots, makes for a very long list of slaves/executors in our typical Jenkins view.

Many users have asked if this view could be compressed, down to just a list of slaves with only those executors that are active appearing. For example; assume that Slave A has 2 executors, both idle and Slave B has 2 executors, one active. The display would look like this:

Slave A (2 available) Slave B (1 available) 1: Building Job A

Instead of the typical view (using the same example): Slave A 1: Idle 2: Idle Slave B 1: Idle 2: Building Job A

I search for a plugin that would do this, or any native behavior, but didn't see anything like this. Does anyone know if it is possible and if so, how?

Upvotes: 3

Views: 2739

Answers (2)

hao chen
hao chen

Reputation: 1

We have exactly the same issue recently. So I made a simple plugin for it. It basically has a switch to either show or hide all the offline nodes. If anyone still needs it or want to add more features, you can go to this link and download the plugin.

Upvotes: -1

sti
sti

Reputation: 11075

When you create a view, you can also set the view to show only the slaves that are relevant to the view.

Every user can also create their own views and set their own default view.

It is not exactly what you asked, but AFAIK this is the only way to limit the number slaves displayed.

Upvotes: 3

Related Questions