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

Perforce additional info through Hudson API

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • p4-plugin
    • None

      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.

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

              Created:
              Updated:
              Resolved: