How to clean System Errors in Bamboo from command line

お困りですか?

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

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

    

要約

Bamboo offers a way to remove System Errors from the Administration page. For more information, please refer to How to bulk clear System Errors from build plans.

If the error list is too large, this page can timeout, blocking the user from the possibility to delete them.

環境

Any Bamboo supported version.

診断

When trying to open the page "System errors", the loading of the page will fail and the user won't reach the option to delete them.

ソリューション

When removing errors, Bamboo calls the endpoint "removeAllErrorsFromLog.action". This article offers a way to reach the endpoint from command line instead, avoiding the timeout.

(info) For this approach  we don't have an official REST endpoint, therefore we need to disable XSRF protection in order to make it work.

To proceed, please do the following:

  • Disable XSRF protection:
    1. Visit "Administration -> Security Settings".
    2. Scroll to the end, click on edit.
    3. Disable the check " Enable XSRF protection".
    4. 保存します。
  • Then proceed to make the call. The command is
curl --user USER:PASSWORD -X POST -H "Content-Type: application/json" BASE_URL/removeAllErrorsFromLog.action

(make sure you put your credentials and update the Base URL)

  • Once this is over, you can re-enable XSRF protection.


最終更新日: 2021 年 10 月 13 日

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

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