Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-73088

recordIssues failing on tool trivy

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • warnings-ng-plugin
    • None

      Using the warning plugin for trivy tool. 

      command used:

       

              recordIssues(enabledForFailure: true,
                      skipPublishingChecks: false,
                      ignoreParsingErrors: true,
                      tools: [trivy(pattern: 'vulnerability-reports/**/trivy-fs.json', reportEncoding: 'UTF-8')],
                      qualityGates: [threshold: 10, type: 'NEW_ERROR', unstable: true, criticality: 'UNSTABLE']
      
      ) 

       

       

      error message:

       

      06:26:19  Also:   org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 21e928d7-1d8e-4ad7-a178-ad1025819336
      06:26:19  hudson.remoting.ProxyException: groovy.lang.MissingMethodException: No signature of method: trivy.call() is applicable for argument types: (java.util.LinkedHashMap) values: [[pattern:vulnerability-reports/trivy-fs.json, reportEncoding:UTF-8]]
      06:26:19  Possible solutions: call(java.lang.String), wait(), any(), wait(long), main([Ljava.lang.String;), each(groovy.lang.Closure)
      06:26:19  	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:71)
      06:26:19  	at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:77)
      06:26:19  	at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:53)
      06:26:19  	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
      06:26:19  	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
      06:26:19  	at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:180)
      06:26:19  	at org.kohsuke.groovy.sandbox.GroovyInterceptor.onMethodCall(GroovyInterceptor.java:23)
      06:26:19  	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:163)
      06:26:19  	at org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:148)
      06:26:19  	at org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:178)
      06:26:19  	at org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:182)
      06:26:19  	at com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17)
      06:26:19  	at org.jenkinsci.plugins.workflow.cps.LoggingInvoker.methodCall(LoggingInvoker.java:105)
      06:26:19  	at implementation.common.Script8.trivyFsScan(Script8.groovy:70)
      06:26:19  	at ___cps.transform___(Native Method)
      06:26:19  	at com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:90)
      06:26:19  	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:116)
      06:26:19  	at com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:85)
      06:26:19  	at jdk.internal.reflect.GeneratedMethodAccessor157.invoke(Unknown Source)
      06:26:19  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      06:26:19  	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
      06:26:19  	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
      06:26:19  	at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55)
      06:26:19  	at com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45)
      06:26:19  	at jdk.internal.reflect.GeneratedMethodAccessor160.invoke(Unknown Source)
      06:26:19  	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      06:26:19  	at java.base/java.lang.reflect.Method.invoke(Unknown Source)
      06:26:19  	at com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72)
      06:26:19  	at com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21)
      06:26:19  	at com.cloudbees.groovy.cps.Next.step(Next.java:83)
      06:26:19  	at com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:147)
      06:26:19  	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:17)
      06:26:19  	at org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:49)
      06:26:19  	at org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:180)
      06:26:19  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:423)
      06:26:19  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:331)
      06:26:19  	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:295)
      06:26:19  	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService.lambda$wrap$4(CpsVmExecutorService.java:136)
      06:26:19  	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
      06:26:19  	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
      06:26:19  	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      06:26:19  	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
      06:26:19  	at jenkins.util.ErrorLoggingExecutorService.lambda$wrap$0(ErrorLoggingExecutorService.java:51)
      06:26:19  	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      06:26:19  	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
      06:26:19  	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      06:26:19  	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      06:26:19  	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.call(CpsVmExecutorService.java:53)
      06:26:19  	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.call(CpsVmExecutorService.java:50)
      06:26:19  	at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:136)
      06:26:19  	at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:275)
      06:26:19  	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService.lambda$categoryThreadFactory$0(CpsVmExecutorService.java:50)
      06:26:19  	at java.base/java.lang.Thread.run(Unknown Source)
       

       

      Warning plugins version : 11.3.0

            drulli Ulli Hafner
            elan Elancheziyan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: