[JIRA] (JENKINS-54656) cvs plugin broken - not possible to add new projects

17 views
Skip to first unread message

rolf.offermanns@gmx.net (JIRA)

unread,
Nov 15, 2018, 12:32:04 PM11/15/18
to jenkinsc...@googlegroups.com
Rolf Offermanns created an issue
 
Jenkins / Bug JENKINS-54656
cvs plugin broken - not possible to add new projects
Issue Type: Bug Bug
Assignee: Unassigned
Attachments: jenkins-cvs-settings.png
Components: cvs-plugin
Created: 2018-11-15 17:31
Environment: Jenkins 2.138.3 from official docker:lts image
cvs-plugin 2.14
Labels: cvs plugin
Priority: Major Major
Reporter: Rolf Offermanns

The plugin crashes when trying to save a new project or edit an existing one (with a configured CVS repository).

The problem seems to be the Exclude Regions setting, which does not show an input field and hence is null in the constructor. I will attach a screenshot of the settings dialog. The stack trace is this:

java.lang.NullPointerException at hudson.scm.CvsRepository.<init>(CvsRepository.java:87) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:529) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:784) at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:717) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:778) at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83) at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:478) at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:474) at hudson.scm.CVSSCM$DescriptorImpl.newInstance(CVSSCM.java:465) at hudson.scm.CVSSCM$DescriptorImpl.newInstance(CVSSCM.java:407) at hudson.DescriptorExtensionList.newInstanceFromRadioList(DescriptorExtensionList.java:142) at hudson.scm.SCMS.parseSCM(SCMS.java:59) at hudson.model.AbstractProject.submit(AbstractProject.java:1802) at hudson.model.Project.submit(Project.java:225) at hudson.model.Job.doConfigSubmit(Job.java:1350) at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:772) at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627) at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:343) at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77) at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:184) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:117) at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:130) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:739)

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

torsten.werner@assyst-intl.com (JIRA)

unread,
Nov 28, 2018, 3:43:03 AM11/28/18
to jenkinsc...@googlegroups.com

torsten.werner@assyst-intl.com (JIRA)

unread,
Nov 28, 2018, 3:50:02 AM11/28/18
to jenkinsc...@googlegroups.com
Torsten Werner commented on Bug JENKINS-54656
 
Re: cvs plugin broken - not possible to add new projects

I'm watching the same issue. Steps to reproduce:

  • create a new project
  • select CVS for SCM
  • set the required values for CVSROOT, password (if needed), project
  • try to save

It is currently impossible to create a new CVS project. It is even impossible to change the source code management.

This is a blocker, it is more than critical.

I use Jenkins 2.138.2, CVS plugin is the same version like reported: 2.14

 

avinash.devops07@gmail.com (JIRA)

unread,
Jan 17, 2019, 12:33:02 AM1/17/19
to jenkinsc...@googlegroups.com

am also facing same issue. can any one provide the solution

My Jenkin version is 2.150.1
CVS- Plugin version is 2.14 

while saving new job am getting this error.

david+jenkins.io@tikalk.com (JIRA)

unread,
Feb 25, 2019, 4:47:03 AM2/25/19
to jenkinsc...@googlegroups.com

david+jenkins.io@tikalk.com (JIRA)

unread,
Feb 25, 2019, 4:49:04 AM2/25/19
to jenkinsc...@googlegroups.com

darius@dons.net.au (JIRA)

unread,
Jun 6, 2019, 1:03:03 AM6/6/19
to jenkinsc...@googlegroups.com

David's patch works for me, +1 to commit

 

torsten.werner@assyst-intl.com (JIRA)

unread,
Jun 6, 2019, 3:01:02 AM6/6/19
to jenkinsc...@googlegroups.com

Please commit, a new version is really needed.

The issue happens on Groovy libraries for pipelines too it they are on CVS.

ezra.bradford@gmail.com (JIRA)

unread,
Jul 16, 2019, 8:01:04 PM7/16/19
to jenkinsc...@googlegroups.com

JENKINS-54478, JENKINS-54525, JENKINS-54526, JENKINS-54656, and JENKINS-55638 seem to all be this same CVS issue.

David Peleg provided this pull request which has been confirmed to resolve the issue. mrmoritz01 recommends an additional pull request to fix the problem at the source.

At this point it's just waiting on anyone with write access to the repo to merge the pull requests. In the meantime, users willing to build from source might be able to merge the change for themselves.

(crossposted to all five tickets)

Reply all
Reply to author
Forward
0 new messages