REST API does not expand artifacts

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: REST API
    • None
    • 1
    • 3

      I'm using this REST API command:

      http://localhost:8085/rest/api/latest/result/MPR-MPL-17?expand=artifacts&expand=jiraIssues&favourite=false&start-index=0&max-results=3

      Project Key: MPR
      Plan Key: MPL
      Build Number: 17

      This build produced artifacts. They are located at BAMBOO_HOME\artifacts\MPR-MPL\JOB1\build-00017\My-Artifact-Definition, and can be seen at http://localhost:8085/browse/MPR-MPL-17/artifact/JOB1/My-Artifact-Definition as well.

      The REST command results in this XML:

      <result restartable="false" continuable="false" id="3244037" number="17" lifeCycleState="Finished" state="Successful" key="MPR-MPL-17" expand="changes,metadata,vcsRevisions,artifacts,comments,labels,jiraIssues,stages">
      	<link rel="self" href="http://localhost:8085/rest/api/latest/result/MPR-MPL-17"/>
      	<planName>My Plan</planName>
      	<projectName>My Project</projectName>
      	<buildStartedTime>2012-05-29T18:19:02.760-03:00</buildStartedTime>
      	<prettyBuildStartedTime>Tue, 29 Mai, 06:19 PM</prettyBuildStartedTime>
      	<buildCompletedTime>2012-05-29T18:19:07.968-03:00</buildCompletedTime>
      	<prettyBuildCompletedTime>Tue, 29 Mai, 06:19 PM</prettyBuildCompletedTime>
      	<buildDurationInSeconds>5</buildDurationInSeconds>
      	<buildDuration>5208</buildDuration>
      	<buildDurationDescription>5 seconds</buildDurationDescription>
      	<buildRelativeTime>1 week ago</buildRelativeTime>
      	<vcsRevisionKey>193</vcsRevisionKey>
      	<vcsRevisions size="1" max-result="1" start-index="0"/>
      	<buildTestSummary>No tests found</buildTestSummary>
      	<successfulTestCount>0</successfulTestCount>
      	<failedTestCount>0</failedTestCount>
      	<quarantinedTestCount>0</quarantinedTestCount>
      	<buildReason>
      	Manual build by <a href="http://192.168.132.63:8085/browse/user/admin">Admin</a>
      	</buildReason>
      	<artifacts size="0" max-result="0" start-index="0"/>
      	<comments size="0" max-result="0" start-index="0"/>
      	<labels size="0" max-result="0" start-index="0"/>
      	<jiraIssues size="1" max-result="1" start-index="0">
      		<issue key="JRA-1"/>
      	</jiraIssues>
      	<stages size="1" max-result="1" start-index="0"/>
      	<changes size="0" max-result="0" start-index="0"/>
      	<metadata size="2" max-result="2" start-index="0"/>
      </result>
      

      As can be seen, no artifacts were identified, so the artifacts element was not expanded.

            Assignee:
            Unassigned
            Reporter:
            Felipe Kraemer
            Votes:
            9 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: