Hi there,
We're running into an issue at the Log File Filter plugin
<https://github.com/jenkinsci/log-file-filter-plugin>, which uses the
*GlobalConfiguration
*class to manage its configuration:
Jan 29, 2019 9:34:08 AM
org.jenkinsci.plugins.workflow.log.TaskListenerDecorator$DecoratedTaskListener
getLogger
WARNING: null
java.lang.IllegalStateException: Jenkins.instance is missing. Read the
documentation of Jenkins.getInstanceOrNull to see what you are doing wrong.
at jenkins.model.Jenkins.get(Jenkins.java:758)
at jenkins.model.GlobalConfiguration.all(GlobalConfiguration.java:75)
at com.tsystems.sbs.LogFileFilterConfig.get(LogFileFilterConfig.java:27)
at
com.tsystems.sbs.LogFileFilterOutputStream.<init>(LogFileFilterOutputStream.java:42)
at
com.tsystems.sbs.LogFileFilterConsoleLogFilter.decorateLogger(LogFileFilterConsoleLogFilter.java:32)
at
hudson.console.ConsoleLogFilter.decorateLogger(ConsoleLogFilter.java:60)
at
org.jenkinsci.plugins.workflow.steps.BodyInvoker$MergedFilter.decorateLogger(BodyInvoker.java:133)
at
org.jenkinsci.plugins.workflow.steps.BodyInvoker$MergedFilter.decorateLogger(BodyInvoker.java:133)
at
org.jenkinsci.plugins.workflow.steps.BodyInvoker$MergedFilter.decorateLogger(BodyInvoker.java:133)
at
org.jenkinsci.plugins.workflow.log.TaskListenerDecorator$ConsoleLogFilterAdapter.decorate(TaskListenerDecorator.java:205)
at
org.jenkinsci.plugins.workflow.log.TaskListenerDecorator$DecoratedTaskListener.getLogger(TaskListenerDecorator.java:244)
at
org.jenkinsci.plugins.workflow.log.TaskListenerDecorator$CloseableTaskListener.getLogger(TaskListenerDecorator.java:286)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1304)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:1266)
at hudson.remoting.UserRequest.perform(UserRequest.java:212)
at hudson.remoting.UserRequest.perform(UserRequest.java:54)
at hudson.remoting.Request$2.run(Request.java:369)
at
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:93)
at java.lang.Thread.run(Thread.java:748)
This happens when running the plugin's step* inside a pipeline job*. I've
looked at Jenkins.getInstanceOrNull()
<https://javadoc.jenkins-ci.org/jenkins/model/Jenkins.html#getInstanceOrNull-->
as
it says, but strangely it points out that the problem should be caused by a
remoting/JVM issue, and in our case the code isn't running inside a node
step.
We're looking for a solution but right now we don't have a clue. Does
anybody have any tip?
Thanks!
--
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/a9ef4dec-66de-4fa2-81d2-1d0ce101da37%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.