-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
From comment from markewaite in JENKINS-63363:
>Have you considered applying labels to an agent automatically based on the machine learning kernel that is detected on the agent? The platformlabeler plugin uses that technique to automatically label agents based on the agent operating system.
loghijiaha that sounds like a great improvement! Later when you have time you can browse the plug-in Mark mentioned. It uses a ComputerListener - a power extension point, I used it in the past to display and populate a custom Queue of jobs in an HPC environment in Jenkins! You can use it for many interesting things.
- https://github.com/jenkinsci/platformlabeler-plugin/blob/master/src/main/java/org/jvnet/hudson/plugins/platformlabeler/NodeLabelCache.java
- https://github.com/jenkinsci/platformlabeler-plugin/blob/master/src/main/java/org/jvnet/hudson/plugins/platformlabeler/PlatformLabeler.java