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

Cannot use URL SCM for pipeline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • urlscm-plugin
    • None

      I'm trying to load a Jenkinsfile from an URL, but get an angry Jenkins when trying to save the project:

      org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.plugins.URLSCM.URLSCM
      	at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:265)
      	at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:765)
      	at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
      	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
      Caused: java.lang.IllegalArgumentException: Failed to instantiate class hudson.scm.SCM from {"clear":true,"urlit":{"url":"http://psi5.com/~geier/Jenkinsfile"},"stapler-class":"hudson.plugins.URLSCM.URLSCM","$class":"hudson.plugins.URLSCM.URLSCM"}
      	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681)
      	at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
      	at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:778)
      Caused: java.lang.IllegalArgumentException: Failed to convert the scm parameter of the constructor public org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition(hudson.scm.SCM,java.lang.String)
      	at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:780)
      	at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
      	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
      Caused: java.lang.IllegalArgumentException: Failed to instantiate class org.jenkinsci.plugins.workflow.flow.FlowDefinition from {"":"3","scm":{"clear":true,"urlit":{"url":"http://psi5.com/~geier/Jenkinsfile"},"stapler-class":"hudson.plugins.URLSCM.URLSCM","$class":"hudson.plugins.URLSCM.URLSCM"},"scriptPath":"Jenkinsfile","lightweight":true,"stapler-class":"org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition","$class":"org.jenkinsci.plugins.workflow.cps.CpsScmFlowDefinition"}
      	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:681)
      	at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478)
      	at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474)
      	at org.jenkinsci.plugins.workflow.job.WorkflowJob.submit(WorkflowJob.java:181)
      	at hudson.model.Job.doConfigSubmit(Job.java:1336)
      	at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:710)
      	at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396)
      	at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408)
      	at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212)
      	at org.kohsuke.stapler.SelectionInterceptedFunction$Adapter.invoke(SelectionInterceptedFunction.java:36)
      	at org.kohsuke.stapler.verb.HttpVerbInterceptor.invoke(HttpVerbInterceptor.java:48)
      	at org.kohsuke.stapler.SelectionInterceptedFunction.bindAndInvoke(SelectionInterceptedFunction.java:26)
      	at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145)
      	at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535)
      	at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58)
      	at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747)
      

            mdonohue mdonohue
            simonrichter Simon Richter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: