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

Perforce additional info through Hudson API

    XMLWordPrintable

    Details

    • 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

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : rpetti
          Path:
          trunk/hudson/plugins/perforce/src/main/java/hudson/plugins/perforce/PerforceChangeLogEntry.java
          http://jenkins-ci.org/commit/32454
          Log:
          [FIXED JENKINS-6836] adding changeNumber and changeTime to the changelog xml api.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : rpetti Path: trunk/hudson/plugins/perforce/src/main/java/hudson/plugins/perforce/PerforceChangeLogEntry.java http://jenkins-ci.org/commit/32454 Log: [FIXED JENKINS-6836] adding changeNumber and changeTime to the changelog xml api.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: