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

NoStaplerConstructorException on jenkins.plugins.git.MergeWithGitSCMExtension

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            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?

            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?

            People

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

              Dates

                Created:
                Updated:
                Resolved: