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.
Le vendredi 26 juillet 2019 17:27:39 UTC+2, Jesse Glick a écrit :
>
> On Fri, Jul 26, 2019 at 5:21 AM Mathieu Delrocq
> <[email protected] <javascript:>> wrote:
> > With docker-plugin, there is a log to know wich job is executing wich
> docker-agent, I want to know if there is something similar in
> kubernetes-plugin.
> > Or if there is a way to catch the information.
>
> I am afraid I did not really follow the question. Are you writing a
> plugin which needs to access information about job/agent associations?
> What precise piece of information are you looking to obtain, based on
> what inputs?
>
--
You received this message because you are subscribed to the Google Groups
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-dev/90666f7d-c4a2-4db0-acbc-937958d1a97e%40googlegroups.com.