[JIRA] (JENKINS-61483) Cannot use URL SCM for pipeline

3 views
Skip to first unread message

Simon.Richter@hogyros.de (JIRA)

unread,
Mar 15, 2020, 5:47:04 AM3/15/20
to jenkinsc...@googlegroups.com
Simon Richter created an issue
 
Jenkins / Bug JENKINS-61483
Cannot use URL SCM for pipeline
Issue Type: Bug Bug
Assignee: mdonohue
Components: urlscm-plugin
Created: 2020-03-15 09:46
Priority: Major Major
Reporter: Simon Richter

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)
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages