Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
1
-
2
-
Description
Problem Definition
As a Bamboo user I want to retrieve repository information from the Bamboo REST API
Suggested Solutions
- Add a /repositories endpoint that would list repositories used by Build plans.
- 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);