REST API does not expand artifacts filename

XMLWordPrintable

    • 0

      I'm using this REST API command:

      http://localhost:8085/rest/api/latest/result/IBE9-SMK5-SI/1394?expand=artifacts

      Project Key: IBE9
      Plan Key: SMK5
      Job Key:SI
      Build Number: 1394

      This build produced artifacts. And two files can be seen at http://localhost:8085/browse/IBE9-SMK5-1394/artifact/SI/FullRelease.run/ as well.
      the links of files are:
      http://localhost:8085/artifact/IBE9-SMK5/SI/build-1394/FullRelease.run/FullRelease_blackburn_RB-AXOS-4.0.0-LDA10_20170726173424_builder.run
      http://localhost:8085/artifact/IBE9-SMK5/SI/build-1394/FullRelease.run/FullRelease_shasta_RB-AXOS-4.0.0-LDA10_20170726172032_builder.run

      The REST command results in this XML:

      <artifacts start-index="0" max-result="2" size="2">
      <artifact>
      <name>Build log</name>
      <link href="http://bamboo.calix.local/download/IBE9-SMK5-SI/build_logs/IBE9-SMK5-SI-1394.log" rel="self"/>
      <producerJobKey>IBE9-SMK5-SI-1394</producerJobKey>
      <shared>false</shared>
      </artifact>
      <artifact>
      <name>FullRelease.run</name>
      <link href="http://bamboo.calix.local/browse/IBE9-SMK5-1394/artifact/SI/FullRelease.run/" rel="self"/>
      <producerJobKey>IBE9-SMK5-SI-1394</producerJobKey>
      <shared>false</shared>
      <size>463877710</size>
      <prettySizeDescription>442 MB</prettySizeDescription>
      </artifact>
      </artifacts>
      

      As can be seen, it show the directory's url of FullRelease.run, how can I get the file link or file name with API ?

            Assignee:
            Unassigned
            Reporter:
            Clara Yuan
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: