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

Pipeline Syntax Generator throws 500 on merge before build

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • git-client-plugin
    • None
    • Centos 7, Jenkins 2.10

      Didn't know which component to assign this to, so went with core.

      When attempting to use the pipeline syntax generator with "checkout: General SCM" and "Additional Behaviors" set to "Merge before build", upon clicking the "Generate Groovy" button the textbox is never populated with the snippet. Console shows an internal server error. Tailing the log showed this:

      Caused by: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class org.jenkinsci.plugins.gitclient.MergeCommand$Strategy
      	at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:247)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.<init>(DescribableModel.java:105)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate_(DescribableModel.java:466)
      	at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:164)
      	at org.jenkinsci.plugins.structs.describable.DescribableParameter.inspect(DescribableParameter.java:112)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate(DescribableModel.java:426)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate_(DescribableModel.java:466)
      	at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:164)
      	at org.jenkinsci.plugins.structs.describable.DescribableParameter.inspect(DescribableParameter.java:112)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate(DescribableModel.java:426)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate_(DescribableModel.java:466)
      	at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:164)
      	at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:158)
      	at org.jenkinsci.plugins.structs.describable.DescribableParameter.inspect(DescribableParameter.java:112)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate(DescribableModel.java:426)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate_(DescribableModel.java:466)
      	at org.jenkinsci.plugins.structs.describable.DescribableParameter.uncoerce(DescribableParameter.java:164)
      	at org.jenkinsci.plugins.structs.describable.DescribableParameter.inspect(DescribableParameter.java:112)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate(DescribableModel.java:426)
      	at org.jenkinsci.plugins.structs.describable.DescribableModel.uninstantiate_(DescribableModel.java:466)
      	at org.jenkinsci.plugins.workflow.steps.StepDescriptor.defineArguments(StepDescriptor.java:114)
      	at org.jenkinsci.plugins.workflow.cps.Snippetizer.object2Groovy(Snippetizer.java:71)
      	at org.jenkinsci.plugins.workflow.cps.Snippetizer.doGenerateSnippet(Snippetizer.java:218)
      	... 66 more
      

      Here is the request JSON:

      json:{"": "0", "scm": {"userRemoteConfigs": {"url": "git@bitbucket.org:xxxxxx/xxxxxxx.git", "credentialsId": "xxxxx", "name": "", "refspec": ""}, "branches": {"name": "*/master"}, "": "auto", "extensions": {"options": {"mergeRemote": "git@bitbucket.org:xxxxx/xxxxx.git", "mergeTarget": "*/master", "mergeStrategy": "ours", "fastForwardMode": "FF"}, "stapler-class<span class="code-quote">": "hudson.plugins.git.extensions.impl.PreBuildMerge", "$class<span class="code-quote">": "hudson.plugins.git.extensions.impl.PreBuildMerge"}, "stapler-class<span class="code-quote">": "hudson.plugins.git.GitSCM", "$class<span class="code-quote">": "hudson.plugins.git.GitSCM"}, "poll": true, "changelog": true, "stapler-class<span class="code-quote">": "org.jenkinsci.plugins.workflow.steps.scm.GenericSCMStep", "$class<span class="code-quote">": "org.jenkinsci.plugins.workflow.steps.scm.GenericSCMStep"}
      

          [JENKINS-36092] Pipeline Syntax Generator throws 500 on merge before build

          Oleg Nenashev added a comment -

          Duplicates JENKINS-34070

          Oleg Nenashev added a comment - Duplicates JENKINS-34070

            Unassigned Unassigned
            onlymoreso Joe Roberts
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: