• Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Minor Minor
    • job-dsl-plugin
    • None
    • JNLP slave running on Kubernetes

      Jenkins ver. 2.150.3

      Upgraded to Jobs DSL 1.71 and all attempts to process dsl scripts from a freestyle job failed. Reverting to 1.70 resolved the issue.

      groovy.lang.GroovyRuntimeException: Could not find matching constructor for: javaposse.jobdsl.dsl.ScriptRequest(java.lang.String, [Ljava.net.URL;, java.lang.Boolean, java.lang.String, java.lang.String)
      	at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1732)
      	at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1532)
      	at org.codehaus.groovy.runtime.callsite.MetaClassConstructorSite.callConstructor(MetaClassConstructorSite.java:49)
      	at javaposse.jobdsl.plugin.ScriptRequestGenerator$_getScriptRequests_closure2.doCall(ScriptRequestGenerator.groovy:53)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
      	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
      	at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
      	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
      	at groovy.lang.Closure.call(Closure.java:414)
      	at groovy.lang.Closure.call(Closure.java:430)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:2040)
      	at org.codehaus.groovy.runtime.DefaultGroovyMethods.each(DefaultGroovyMethods.java:1895)
      	at org.codehaus.groovy.runtime.dgm$160.invoke(Unknown Source)
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoMetaMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:274)
      	at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:56)
      	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
      	at javaposse.jobdsl.plugin.ScriptRequestGenerator.getScriptRequests(ScriptRequestGenerator.groovy:42)
      	at javaposse.jobdsl.plugin.ExecuteDslScripts.perform(ExecuteDslScripts.java:326)
      	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
      	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
      	at hudson.model.Build$BuildExecution.build(Build.java:206)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:163)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      	at hudson.model.Run.execute(Run.java:1810)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      ERROR: Could not find matching constructor for: javaposse.jobdsl.dsl.ScriptRequest(java.lang.String, [Ljava.net.URL;, java.lang.Boolean, java.lang.String, java.lang.String)

          [JENKINS-56320] Job DSL 1.71 unable to process DSLs

          I can not reproduce the problem using the offical Jenkins 2.150.3 docker image and Job DSL 1.72.

          Can you provide a reproducer?

          Daniel Spilker added a comment - I can not reproduce the problem using the offical Jenkins 2.150.3 docker image and Job DSL 1.72. Can you provide a reproducer?

          Joe Roberts added a comment -

          I've upgraded to Job DSL 1.72 and am also unable to reproduce.

          Joe Roberts added a comment - I've upgraded to Job DSL 1.72 and am also unable to reproduce.

          Claudio Lara added a comment -

          We have the same issue running Jenkins 2.150.1, Job DSL plugin 1.72, on Kubernetes. After upgrading from version Job DSL 1.68 we are facing the same output error. The same image with the same version of Job DSL is running in parallel and that instance is working fine. The only difference that we see is the Java version of both instances:

          Instance not working: Java version 1.8.0_212

          Instance working: Java version 1.8.0_201

          Claudio Lara added a comment - We have the same issue running Jenkins 2.150.1, Job DSL plugin 1.72, on Kubernetes. After upgrading from version Job DSL 1.68 we are facing the same output error. The same image with the same version of Job DSL is running in parallel and that instance is working fine. The only difference that we see is the Java version of both instances: Instance not working: Java version 1.8.0_212 Instance working: Java version 1.8.0_201

          I still can not reproduce the problem using the offical Jenkins 2.176.2 docker image and Job DSL 1.76. The image runs on OpenJDK 1.8.0_212.

          Daniel Spilker added a comment - I still can not reproduce the problem using the offical Jenkins 2.176.2 docker image and Job DSL 1.76. The image runs on OpenJDK 1.8.0_212.

            onlymoreso Joe Roberts
            onlymoreso Joe Roberts
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: