Troubleshooting Builds

お困りですか?

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

コミュニティに質問

プラットフォームについて: 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 は除く

要約

Builds in Bamboo should be exactly the same as if they were executed via the command line. Sometimes the builds may behave differently. This article covers some tips and tricks to troubleshoot failed builds.

ソリューション

Bamboo Build Process

Bamboo forks a new process for each build and tries to reproduce the user's environment by passing down all the System and PATH environment variables to the build.

The new process is created using different Builder tasks.

Debugging Failing Builds

If you haven't done so already, please run your build outside of Bamboo via the command line as the user running the Bamboo process and confirm that the build is successful.

Navigate to your working directory and run the build manually:

  • <bamboo-agent-home>/xml-data/build-dir/PLAN_KEY

For example, if this is a Maven build then please supply the appropriate goal: mvn clean install

Please ensure that the following criteria have been met:

  • Ensure that Bamboo is running as the local user and the user executing the build via the command line owns the Bamboo process.

    Bamboo Service on Windows

    Bamboo will install itself as the SYSTEM user on Windows, ensure that you are running the Bamboo service as the local user

  • If the failing build is being executed on a remote or elastic agent, ensure that it can be executed successfully on the agent as the Bamboo user.
  • If your build has specific dependencies or requires you to set Environment Variables, ensure that the variables/dependencies are available to your build.
  • If your JAVA build is failing due to memory errors, then please try increasing the memory allocated to your build.
  • You may find a collection of debug/verbose properties you can use on different build tasks by following this KB: How to enable debug properties on the Build Processes in Bamboo

Check the build agent logs

You may find additional information about the reason for the failure in the Agent logs.

  • <bamboo-agent-home>/atlassian-bamboo-agent.log
  • <bamboo-agent-home>/logs/atlassian-bamboo.log

Run the builds with Debug mode in Bamboo

Bamboo allows you to run the whole Plan with some extra verbosity. That may be useful to diagnose things that may come before the actual build starts, such as Git checkouts, previous tasks, etc.

  • Find the Plan you want to run
  • Click on Run dropdown menu >> Run customized >> Select Verbose mode >> Run


Still having problems?

アトラシアン サポートにお問い合わせください。喜んでお手伝いします。可能な限り詳細な情報をご提供ください。

  • 影響を受けているアプリケーションのログ (該当する場合)
  • エラー メッセージのスクリーンショット (ログに含まれていない場合)
  • 過去に行った手順についての情報



最終更新日 2023 年 11 月 16 日

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

はい
いいえ
この記事についてのフィードバックを送信する

このセクションの項目

Powered by Confluence and Scroll Viewport.