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

Returning related triggered builds from Jenkins' REST API

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • gerrit-trigger-plugin
    • None

      Currently, related triggered builds are displayed on the build page of a triggered build:

       

      However, I have some processing that could benefit from being able to read this information. Can we expose this in the output of the build REST API?

      Currently, this is all we get:

      {
        "_class" : "hudson.model.FreeStyleBuild",
        "actions" : [
          {
            "_class" : "hudson.model.CauseAction",
            "causes" : [
              {
                "_class" : "com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritCause",
                "shortDescription" : "Triggered by Gerrit: https://aa.bb.cc/c/repository-name/+/513530"
              }
            ]
          },
          { 

       

          [JENKINS-59599] Returning related triggered builds from Jenkins' REST API

          Dustin Oprea created issue -
          Dustin Oprea made changes -
          Summary Original: It'd be most excellent if related triggered builds were both displayed in UI and returned from Jenkins' REST API New: Returning related triggered builds from Jenkins' REST API

            rsandell rsandell
            dsoprea Dustin Oprea
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: