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

NoStaplerConstructorException on jenkins.plugins.git.MergeWithGitSCMExtension

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • git-plugin
    • Jenkins 2.138.2
      Pipeline 2.6
      Git 3.8.0/3.9.1 (both tested)
      Git client plugin 2.7.3

      After updating Jenkins plugins to latest today, Jenkins master is periodically logging a warning when running pipelines involving git checkout:

      Oct 31, 2018 3:40:40 PM org.jenkinsci.plugins.workflow.cps.DSL invokeStep
      WARNING: Error storing the arguments for step: checkout
      org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class jenkins.plugins.git.MergeWithGitSCMExtension
        at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames (ClassDescriptor.java:265)
        at org.jenkinsci.plugins.structs.describable.DescribableModel.<init> (DescribableModel.java:144)
        at org.jenkinsci.plugins.structs.describable.DescribableModel.of (DescribableModel.java:114)
        at org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl.sanitizeObjectAndRecordMutation (ArgumentsActionImpl.java:294)
        at org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl.sanitizeListAndRecordMutation (ArgumentsActionImpl.java:242)
        at org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl.sanitizeObjectAndRecordMutation (ArgumentsActionImpl.java:313)
        at org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl.sanitizeMapAndRecordMutation (ArgumentsActionImpl.java:386)
        at org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl.sanitizeObjectAndRecordMutation (ArgumentsActionImpl.java:311)
        at org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl.sanitizeMapAndRecordMutation (ArgumentsActionImpl.java:386)
        at org.jenkinsci.plugins.workflow.cps.actions.ArgumentsActionImpl.<init> (ArgumentsActionImpl.java:74)
        at org.jenkinsci.plugins.workflow.cps.DSL.invokeStep (DSL.java:245)
        at org.jenkinsci.plugins.workflow.cps.DSL.invokeMethod (DSL.java:178)
        at org.jenkinsci.plugins.workflow.cps.CpsScript.invokeMethod (CpsScript.java:122)
      ...
      

      See also issue https://issues.jenkins-ci.org/browse/JENKINS-34070 which is similar but for a different class.

          [JENKINS-54372] NoStaplerConstructorException on jenkins.plugins.git.MergeWithGitSCMExtension

          Martin _ created issue -
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]

          Mark Waite added a comment -

          May be related to workflow cps plugin 2.59 or 2.60. Unclear if the correct fix is to add DataBoundConstructor's into classes in the git plugin or to make some change in the workflow cps plugin.

          svanoort or jglick can you provide more guidance?

          Mark Waite added a comment - May be related to workflow cps plugin 2.59 or 2.60. Unclear if the correct fix is to add DataBoundConstructor's into classes in the git plugin or to make some change in the workflow cps plugin. svanoort or jglick can you provide more guidance?
          Mark Waite made changes -
          Link New: This issue is related to JENKINS-54186 [ JENKINS-54186 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            Unassigned Unassigned
            gz Martin _
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: