How to find the user who performed a deployment in the Bamboo database
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
要約
It may be necessary for data auditing, retention and reporting purposes to identify the user who executed a manual deployment in Bamboo via the database.
ソリューション
The user who executed the deployment can be found in the DEPLOYMENT_RESULT_CUSTOMDATA table. It is stored in a CUSTOM_INFO_KEY of 'ManualBuildTriggerReason.userName' under the CUSTOM_INFO_VALUE column.
Here is an example query that performs all the relevant joins to tie in deployment-related information and filters for deployments with a triggering user:
SELECT DP.*, DE.*, DR.*, DRCD.* FROM DEPLOYMENT_RESULT DR
JOIN DEPLOYMENT_RESULT_CUSTOMDATA DRCD ON DR.DEPLOYMENT_RESULT_ID = DRCD.DEPLOYMENT_RESULT_ID
JOIN DEPLOYMENT_ENVIRONMENT DE ON DR.ENVIRONMENT_ID = DE.ENVIRONMENT_ID
JOIN DEPLOYMENT_PROJECT DP ON DE.PACKAGE_DEFINITION_ID = DP.DEPLOYMENT_PROJECT_ID
WHERE CUSTOM_INFO_KEY = 'ManualBuildTriggerReason.userName';この内容はお役に立ちましたか?