Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: BUILD-STABILITY-1.1.2
    • Fix Version/s: BUILD-STABILITY-1.2
    • Component/s: Build Stability
    • Labels:
      None
    • Environment:
      Bamboo 3.0
    • Number of attachments :
      0

      Description

      When I call the following url, I can get 4 latest builds of the PROJECT:
      http://hostname:port/rest/api/latest/build/PROJECT?os_authType=basic&expand=builds[0:3].build

      But it looks like plugin calls this:
      http://hostname:port/rest/api/latest/build/PROJECT/latest?os_authType=basic

      • and gets only one last build result.

      Look here:
      http://confluence.atlassian.com/display/BAMBOO/Bamboo+REST+Resources#BambooRESTResources-BuildServiceSpecificPlan
      http://confluence.atlassian.com/display/BAMBOO/Using+the+Bamboo+REST+APIs

      (I don't know how to get all results starting at some date in one request - it seems 'sonar.build-stability.days' setting is incompatible with REST API of the Bamboo ...)

        Activity

        Hide
        Fabrice Bellingard added a comment -

        Actually, it seems that the plugin does not work with the latest versions of Bamboo, so this ticket should have a wider scope and try to get back the support of Bamboo.

        Tests can be done with https://bamboo-ci.codehaus.org

        Show
        Fabrice Bellingard added a comment - Actually, it seems that the plugin does not work with the latest versions of Bamboo, so this ticket should have a wider scope and try to get back the support of Bamboo. Tests can be done with https://bamboo-ci.codehaus.org
        Show
        Julien HENRY added a comment - - edited REST API has been changed: https://developer.atlassian.com/display/BAMBOODEV/Changes+for+Bamboo+3.0#ChangesforBamboo3.0-RESTChanges
        Hide
        Julien HENRY added a comment -

        Fixed by upgrading to Bamboo 3.0 REST API.

        First query to get latest build:
        /rest/api/latest/result/PROJECT/?os_authType=basic&expand=results[0].result

        then get previous builds by decreasing number until date is too old:
        /rest/api/latest/result/PROJECT/XX?os_authType=basic&expand=results.result

        Show
        Julien HENRY added a comment - Fixed by upgrading to Bamboo 3.0 REST API. First query to get latest build: /rest/api/latest/result/PROJECT/?os_authType=basic&expand=results [0] .result then get previous builds by decreasing number until date is too old: /rest/api/latest/result/PROJECT/XX?os_authType=basic&expand=results.result
        Hide
        Fabrice Bellingard added a comment -

        Manually tested!

        Show
        Fabrice Bellingard added a comment - Manually tested!

          People

          • Assignee:
            Julien HENRY
            Reporter:
            David Matejcek
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: