Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-17122

REST endpoint for latest Chain result doesn't provide list of artifacts

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 5.10.1
    • 5.9, 5.10.0
    • REST API
    • None

    Description

      Call to a REST endpoint for latest Job result provides list of artifacts:

      curl -H "Accept: application/json" "https://tardigrade-bamboo.internal.atlassian.com/rest/api/latest/result/BAM-FC-REST/latest?expand=artifacts" | json_pp
      {
      ...
         "artifacts" : {
            "size" : 2,
            "max-result" : 2,
            "artifact" : [
               {
                  "shared" : false,
                  "name" : "Build log",
                  "producerJobKey" : "BAM-FC-REST-14444",
                  "link" : {
                     "rel" : "self",
                     "href" : "https://tardigrade-bamboo.internal.atlassian.com/download/BAM-FC-REST/build_logs/BAM-FC-REST-14444.log"
                  }
               },
               {
                  "prettySizeDescription" : "974 KB",
                  "size" : 997787,
                  "link" : {
                     "rel" : "self",
                     "href" : "https://tardigrade-bamboo.internal.atlassian.com/build/result/artifactUrlRedirect.action?planKey=BAM-FC-REST&buildNumber=14444&artifactName=PerformanceStats"
                  },
                  "shared" : false,
                  "name" : "PerformanceStats",
                  "producerJobKey" : "BAM-FC-REST-14444"
               }
            ],
            "start-index" : 0
         },
      }
      

      but the call to Chain result doesn't:

      curl -H "Accept: application/json" "https://tardigrade-bamboo.internal.atlassian.com/rest/api/latest/result/BAM-FC/latest?expand=artifacts" | json_pp
      {
      ...
         "artifacts" : {
            "size" : 0,
            "artifact" : [],
            "max-result" : 0,
            "start-index" : 0
         },
      ...
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kbrazulewicz Krystian Brazulewicz
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: