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

Perforce additional info through Hudson API

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Component/s: perforce-plugin
    • Labels:
      None
    • Similar Issues:

      Description

      When using the Hudson API to view information,even when viewing with depth=1, the changeset number and changeset timestamp is missing. You can view all the affected files and the user who submitted the change, but not the information mentioned above. Instead, how I am retrieving the information currently:

      $dom = new domDocument;
      @$dom->loadHTMLFile("http://hudson_server/job/job1/123/changes");
      $xml = simplexml_import_dom($dom);
      if(isset($xml->body->table[1]>tr>td[1]>div>b->a))
      print("<td>" . $xml->body->table[1]>tr>td[1]>div>b->a . "</td>"); // print the changelist number.

      This is extremely slow (if you have a lot of builds) and would be much faster if the information could be accessible through the API:
      http://hudson_server/job/job1/123/api/xml?depth=1

      Thank you.

        Attachments

          Activity

            People

            • Assignee:
              rpetti Rob Petti
              Reporter:
              kagemucha kagemucha
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: