Find how many plans use each type of repository

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

シナリオ

To know how many plans use each type of repository, you can run this SQL query:

 

SELECT vl.plugin_key AS repository_type, COUNT(vl.plugin_key) AS plans_sum
  FROM plan_vcs_location AS pvl 
  JOIN vcs_location      AS vl ON pvl.vcs_location_id = vl.vcs_location_id 
  JOIN build             AS b  ON b.build_id = pvl.plan_id
  JOIN project           AS p  ON b.project_id = p.project_id
GROUP BY repository_type
ORDER BY total_of_plans DESC;

結果の例

REPOSITORY_TYPEPLANS_SUM
com.atlassian.bamboo.plugin.system.repository:svn2
com.atlassian.bamboo.plugins.atlassian-bamboo-plugin-git:git1
最終更新日 2016 年 11 月 29 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.