-
Bug
-
Resolution: Unresolved
-
Minor
-
None
org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedUsageException: script not yet approved for use*10:39:55* at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.using(ScriptApproval.java:466)10:39:55 at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval$using$0.call(Unknown Source)10:39:55 at com.splunk.splunkjenkins.UserActionDSL.perform(UserActionDSL.groovy:41)10:39:55 at com.splunk.splunkjenkins.listeners.LoggingRunListener.onCompleted(LoggingRunListener.java:85)10:39:55 at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)10:39:55 at hudson.model.Run.execute(Run.java:1864)10:39:55 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)10:39:55 at hudson.model.ResourceController.execute(ResourceController.java:97)10:39:55 at hudson.model.Executor.run(Executor.java:429)
This exception is being thrown and logged at the end of every jenkins job invocation on our server, even jobs that have 0 groovy scripts in them.
Because the exception is thrown at the end of the job and appears as the last thing in the log, save for perhaps the line saying it has FAILED, this causes developers to assume that the exception is the cause of the build failure when it actually doesn't cause anything to break.
There are no unapproved script or method invocations in the script approval page.
I am facing the same issue. This is coming at end of every job. There is no script pending for approval.
This is the message I see in logs:
org.jenkinsci.plugins.scriptsecurity.scripts.UnapprovedUsageException: script not yet approved for use
at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval.using(ScriptApproval.java:474)
at org.jenkinsci.plugins.scriptsecurity.scripts.ScriptApproval$using$0.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)
at com.splunk.splunkjenkins.UserActionDSL.perform(UserActionDSL.groovy:39)
at com.splunk.splunkjenkins.listeners.LoggingRunListener.onCompleted(LoggingRunListener.java:85)
at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:209)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.finish(WorkflowRun.java:587)
at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$800(WorkflowRun.java:133)
at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:1014)
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1463)
at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:493)
at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:38)
at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:131)
at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)