jenkinsci / allure-plugin

Allure Jenkins Plugin
https://plugins.jenkins.io/allure-jenkins-plugin/
Other
84 stars 66 forks source link

Build fail when trying to run allure commands #310

Open lrotberg opened 2 years ago

lrotberg commented 2 years ago

Jenkins and plugins versions report

Environment ```text Paste the output here ```

What Operating System are you using (both controller, and any agents involved in the problem)?

Windows 10, Chrome 75, Jenkins 2.332.3, Allure 2.17.3, Python 3.10

Reproduction steps

  1. Create a scripted Jenkins pipeline.
  2. Use Jenkins' pipeline syntax snippet generator tool to generate the needed command to generate allure reports.
  3. Get allure jdk: '', results: [[path: 'allure-results']] as a result from the snippet generator.
  4. Run allure jdk: '', results: [[path: 'allure-results']] any point of the build.

Expected Results

Build succeeds and report is generated and attached.

Actual Results

jenkins_log_allure_error

Image text: 11:59:27.045 e.toString = groovy.lang.MissingMethodException: No signature of method: java.lang.String.call() is applicable for argument types: (java.util.LinkedHashMap) values: [[properties:[], jdk:, results:[[path:allure-results]]]] 11:59:27.045 Possible solutions: wait(), any(), wait(long), each(groovy.lang.Closure), take(int), any(groovy.lang.Closure) 11:59:27.045 e.getMessage = No signature of method: java.lang.String.call() is applicable for argument types: (java.util.LinkedHashMap) values: [[properties:[], jdk:, results:[[path:allure-results]]]] 11:59:27.045 Possible solutions: wait(), any(), wait(long), each(groovy.lang.Closure), take(int), any(groovy.lang.Closure) 11:59:27.045 e.getStackTrace = [org.jenkinsci.plugins.scriptsecurity.sandbox.groovy.SandboxInterceptor.onMethodCall(SandboxInterceptor.java:154), org.kohsuke.groovy.sandbox.impl.Checker$1.call(Checker.java:161), org.kohsuke.groovy.sandbox.impl.Checker.checkedCall(Checker.java:165), com.cloudbees.groovy.cps.sandbox.SandboxInvoker.methodCall(SandboxInvoker.java:17), WorkflowScript.run(WorkflowScript:11), cps.transform(Native Method), com.cloudbees.groovy.cps.impl.ContinuationGroup.methodCall(ContinuationGroup.java:86), com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.dispatchOrArg(FunctionCallBlock.java:113), com.cloudbees.groovy.cps.impl.FunctionCallBlock$ContinuationImpl.fixArg(FunctionCallBlock.java:83), sun.reflect.GeneratedMethodAccessor522.invoke(Unknown Source), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:498), com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72), com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55), com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45), sun.reflect.GeneratedMethodAccessor535.invoke(Unknown Source), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:498), com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72), com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55), com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45), sun.reflect.GeneratedMethodAccessor535.invoke(Unknown Source), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:498), com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72), com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.dispatch(CollectionLiteralBlock.java:55), com.cloudbees.groovy.cps.impl.CollectionLiteralBlock$ContinuationImpl.item(CollectionLiteralBlock.java:45), sun.reflect.GeneratedMethodAccessor535.invoke(Unknown Source), sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43), java.lang.reflect.Method.invoke(Method.java:498), com.cloudbees.groovy.cps.impl.ContinuationPtr$ContinuationImpl.receive(ContinuationPtr.java:72), com.cloudbees.groovy.cps.impl.ConstantBlock.eval(ConstantBlock.java:21), com.cloudbees.groovy.cps.Next.step(Next.java:83), com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:174), com.cloudbees.groovy.cps.Continuable$1.call(Continuable.java:163), org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:136), org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:275), com.cloudbees.groovy.cps.Continuable.run0(Continuable.java:163), org.jenkinsci.plugins.workflow.cps.SandboxContinuable.access$001(SandboxContinuable.java:18), org.jenkinsci.plugins.workflow.cps.SandboxContinuable.run0(SandboxContinuable.java:51), org.jenkinsci.plugins.workflow.cps.CpsThread.runNextChunk(CpsThread.java:187), org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.run(CpsThreadGroup.java:420), org.jenkinsci.plugins.workflow.cps.CpsThreadGroup.access$400(CpsThreadGroup.java:95), org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:330), org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$2.call(CpsThreadGroup.java:294), org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$2.call(CpsVmExecutorService.java:67), java.util.concurrent.FutureTask.run(FutureTask.java:266), hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139), jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28), jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68), java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511), java.util.concurrent.FutureTask.run(FutureTask.java:266), java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149), java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624), java.lang.Thread.run(Thread.java:748)]

Anything else?

Using scripted pipeline, can't use declarative pipeline so didn't check on that one. Pipeline succeeds if an empty allure command is called, i.e. only allure without any parameters.