Dear all,
As part of this capability, we start a logs shipper in the Jenkins Agent JVMs that is batching the log messages and thus need a graceful shutdown to flush its buffer (logs the shipper is an OpenTelemetry SDK ).
Question: is there a Jenkins API to listen to the shutdown event of the Jenkins Agent? We can't use the Jenkins Agent JVM shutdown hook because the classes loaded in the agent JVM by the controller are already unloaded and we get a NoClassDefFoundError (e.g.
here).
We looked at the
EventListener but it's not providing the shutdown event we need.
Cyrille
Cyrille