Is there any way to hide the offline agent nodes in Jenkins, or only show online node? Or whenever an offline node comes online it starts showing in the list of online nodes?
Related
Jenkins reports "node low disk space", when will it sync the state of nodes?
Even if I released the space on the node, it still reported "node low disk space", and the node was offline.
How to solve this problem?
Thanks.
This does not help you, but I do have the same question. I installed the Mail Watcher plugin to get notifications about nodes going offline and back online and tried to trigger this by forcing low diskspace and cleaning up space on one of the nodes. If I wait more than 1 hour I still get no notification. The only way to force this, is to refresh the status on the "Manage nodes and clouds" page of Jenkins. But there must be some auto-refresh or periodic check without viewing this page manually I presume. Could it be a configuration option that has not been found yet?
My team has a lot of nodes connected to our Jenkins instance. Over 50 at the moment. Which creates a long vertical list of every node when looking at the Jenkins UI, under "BUILD EXECUTOR STATUS" on the left of the home screen.
Is there anyway to group these nodes together to make that list less ridiculous?
The list I'm talking about is here:
https://i.imgur.com/SeeL2sb.png
I'd like to make custom drop down folders like WINDOWS, APPLE, LINUX and have all the related nodes be in those lists instead of showing everything in one long list.
Is this possible? Or is making a custom view still my only option?
We would like to bring a Jenkins slave node back online after a specific operation involving updates to the node, then rebooting the node.
The intent is to ensure that when that node is know to have been updated, we monitor it, and when it is online again, signal to our schedulers that they can start allocating resources on that node again.
The problem is that online is not enough, as asking to reboot may not mean the computer does so immediately, so the Jenkins node may stay online for a while. So the idea is to see if the time since this node was brought online in Jenkins has suddenly dropped, and use this as a trigger.
However, I've not yet found a suitable way to get the time a Jenkins node was last brought online.
I have not tested the code below, but it could lead you in the right direction.
You can execute Groovy script:
connectTime = aSlave.getComputer().getConnectTime();
Links:
Display info about nodes
Jenkins Script Console
Determine Slave Up/Down TIme
We use jenkins for automation for our test infrastructure. The requirement is to give users the ability to use a jenkins node for their private test or debug using private jenkins jobs and then put back in the pool of nodes marked with labels; so that other jobs that were marked to run on particular labels can be run without interference.
We can achieve this by letting users alter label, but that didnt workout as users (nearly 50) are making their own label names and it takes time for admin to reassign the nodes (even with process) and precious test time is getting affected.
we are looking for some solution such as ability to provide buttons like take this node offline (cant use this option since jenkins cannot see the node anymore and so users cannot run jenkins job on the node) but may be with the ability to run scripts.
I have done some research on this but have to compromise on some requirements, so i decided to seek help from the community... SUGGESTIONS?
Did you have a look to this question:
How to take Jenkins master node offline using CLI?
In the 1st question, there are some CLI to make a node offline.
Maybe you can create a dedicated job on the master with one parameter (the node name). This job will call the Jenkins CLI to stop your node.
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?
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.
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.