Hi Jesse. I want to get wich run/job is running on an agent of kubernetes-plugin.
In docker-plugin, there is a simple log at the end of an agent's task :
private void done(Executor executor) {
final DockerComputer c = (DockerComputer) executor.getOwner();
Queue.Executable exec = executor.getCurrentExecutable();
if (exec instanceof ContinuableExecutable && ((ContinuableExecutable) exec).willContinue()) {
LOGGER.log(Level.FINE, "not terminating {0} because {1} says it will be continued", new Object[]{c.getName(), exec});
return;
}
LOGGER.log(Level.FINE, "terminating {0} since {1} seems to be finished", new Object[]{c.getName(), exec});
done(c);
}
Is there a way to get the information in kubernetes-plugin? or if a plugin exist to get this informations on all jenkins agent?
Thank you.