Retrieve repository information from REST API

XMLWordPrintable

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

      Problem Definition

      As a Bamboo user I want to retrieve repository information from the Bamboo REST API

      Suggested Solutions

      1. Add a /repositories endpoint that would list repositories used by Build plans.
      2. Add repository data to /plan endpoint

      Workaround

      This could be retrieved from the Bamboo database:

      mysql
      select b.full_key, vl.name, substring(vl.plugin_key, locate(':', vl.plugin_key)+1) type, vl.xml_definition_data 
      from build b 
      join plan_vcs_location pvl on (b.build_id = pvl.plan_id) 
      join vcs_location vl using (vcs_location_id);
      
      postgres
      select b.full_key, vl.name, substring(vl.plugin_key from position(':' in vl.plugin_key)+1), vl.xml_definition_data 
      from build b 
      join plan_vcs_location pvl on (b.build_id = pvl.plan_id) 
      join vcs_location vl using (vcs_location_id);
      

              Assignee:
              Unassigned
              Reporter:
              Ellie Z
              Votes:
              4 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: