How to configure temporary directory in Bamboo server

お困りですか?

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

コミュニティに質問

The information in this page relates to customizations in Bamboo. Consequently, Atlassian Support cannot guarantee to provide any support for the steps described on this page as customizations are not covered under Atlassian Support Offerings. Please be aware that this material is provided for your information only and that you use it at your own risk.

また、ファイルの直接変更によって行われるカスタマイズは、アップグレード プロセスには含まれない点にご注意ください。このような変更は、アップグレード後のインスタンスで手動で再適用する必要があります。

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


要約

In some scenarios, it might be required to change or configure the temporary directory (java temp directory) for Bamboo server.

ソリューション

This temp directory is used by the JVM for temporary file storage. The JVM is configured to use this as its java.io.tmpdir in the catalina.sh and catalina.bat scripts. Tomcat is configured to use this temporary directory rather than its default for security reasons. The temp directory must exist for Tomcat to work correctly.

Follow the instructions below to change the temporary directory in Bamboo server according to your Operating System:

Linux or MacOs

  1. Stop Bamboo.
  2. From <bamboo-install>/bin, open catalina.sh.
  3. Find the section CATALINA_TMPDIR=, for example:

    if [ -z "$CATALINA_TMPDIR" ] ; then
      # Define the java.io.tmpdir to use for Catalina
      CATALINA_TMPDIR="$CATALINA_BASE"/temp
    fi
  4. Change "$CATALINA_BASE"/temp to the desired directory and save the changes.
  5. Start Bamboo back.

Windows (starting from the .bat file)

  1. Stop Bamboo.
  2. From <bamboo-install>/bin, open catalina.bat.
  3. Find the section CATALINA_TMPDIR=, for example:

    if not "%CATALINA_TMPDIR%" == "" goto gotTmpdir
    set "CATALINA_TMPDIR=%CATALINA_BASE%\temp"
    :gotTmpdir
  4. Change %CATALINA_BASE%\temp to the desired directory and save the changes..
  5. Start Bamboo back.

Windows サービス

  1. Stop Bamboo service.
  2. Add the following Java option by configuring your system properties:

    -Djava.io.tmpdir=/path/to/tmpdir
  3. Change /path/to/tempdir to the desired directory and save the changes..

  4. Start Bamboo back.


Please also see How to configure the temporary directory for a Bamboo remote agent.





最終更新日 2021 年 4 月 26 日

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

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