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

DescribableModel can't inspect ReverseBuildTrigger; need binding for Result

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core, structs-plugin
    • None
    • core 2.0
      structs 1.1

      DescribableModel reports an error for hudson.model.Result.

      Run this in script console to reproduce:

      import org.jenkinsci.plugins.structs.describable.*
      import jenkins.triggers.*
        
      new DescribableModel(ReverseBuildTrigger)
      

      Result:

      (upstreamProjects: String, threshold: org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class hudson.model.Result)
      

          [JENKINS-34464] DescribableModel can't inspect ReverseBuildTrigger; need binding for Result

          Daniel Spilker created issue -
          Jesse Glick made changes -
          Summary Original: DescribableModel can't inspect ReverseBuildTrigger New: DescribableModel can't inspect ReverseBuildTrigger; need binding for Result
          Jesse Glick made changes -
          Epic Link New: JENKINS-35393 [ 171186 ]
          Jesse Glick made changes -
          Link New: This issue is blocking JENKINS-27092 [ JENKINS-27092 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 170583 ] New: JNJira + In-Review [ 183964 ]

          Jesse Glick added a comment -

          Also ReverseBuildTrigger should be fixed to use @DataBoundSetter for threshold so that the default in the UI of SUCCESS would apply also in code.

          Jesse Glick added a comment - Also ReverseBuildTrigger should be fixed to use @DataBoundSetter for threshold so that the default in the UI of SUCCESS would apply also in code.
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-40849 [ JENKINS-40849 ]
          Jesse Glick made changes -
          Link New: This issue relates to JENKINS-40307 [ JENKINS-40307 ]
          Jesse Glick made changes -
          Link New: This issue is duplicated by JENKINS-40304 [ JENKINS-40304 ]
          Andrew Bayer made changes -
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ] New: Andrew Bayer [ abayer ]

            abayer Andrew Bayer
            daspilker Daniel Spilker
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: