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

cvs plugin broken - not possible to add new projects

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Blocker
    • Resolution: Unresolved
    • cvs-plugin
    • Jenkins 2.138.3 from official docker:lts image
      cvs-plugin 2.14

    Description

      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)

      Attachments

        Activity

          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

           

          twerner Torsten Werner added a comment - 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  
          avinash1617 avinash reddy added a comment -

          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.

          avinash1617 avinash reddy added a comment - 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.
          davidpel David Peleg added a comment - Looks like a duplicate of  https://issues.jenkins-ci.org/browse/JENKINS-54525
          davidpel David Peleg added a comment -

          I suggested a fix in pull request: https://github.com/jenkinsci/cvs-plugin/pull/48

          davidpel David Peleg added a comment - I suggested a fix in pull request:  https://github.com/jenkinsci/cvs-plugin/pull/48

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

           

          darius121 Daniel O'Connor added a comment - David's patch works for me, +1 to commit  

          Please commit, a new version is really needed.

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

          twerner Torsten Werner added a comment - Please commit, a new version is really needed. The issue happens on Groovy libraries for pipelines too it they are on CVS.
          ezra_bradford Ezra Bradford added a comment -

          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)

          ezra_bradford Ezra Bradford added a comment - 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)

          People

            Unassigned Unassigned
            roffermanns Rolf Offermanns
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: