How to Run, Install, Start, and Stop Remote Agents

お困りですか?

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

コミュニティに質問

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

要約

This article will show the available commands for installing, starting, and stopping Remote Agents on Linux, Mac OS X, and Windows systems.

環境

Bamboo remote agents.

ソリューション

The Java commands can all use the variables listed in How to extend the Remote agent installation command using JVM parameters. Arguments for any Shell and Batch scripts will be given with the description of the script.

次のコマンドを実行します。

To run the agent in the foreground on any Operating System, you can use the command provided on the Remote Agent installation page in Bamboo, as well as the Bamboo remote agent installation guide:

java [parameters] -jar atlassian-bamboo-agent-installer-X.X-SNAPSHOT.jar <Bamboo Base URL>/agentServer/ [console]

where <Bamboo Base URL> is replaced with the actual value of the Bamboo server Base URL.

Start and Stop

Please expand the section for your Operating System.

Linux

bamboo-agent.sh

After installing, to run the agent from the console/command line, the <bamboo-agent-home>/bin/bamboo-agent.sh the script will be available. This accepts one of the following arguments:

  • console – run in the foreground
  • start – start agent
  • condrestart–Restart only if already running.
  • stop – stop agent
  • restart – restart agent (runs stop then start)
  • install – Install Service to start automatically when system boots.
  • installstart – Install and start Service running as a daemon process.
  • remove – Uninstall Service.
  • status – checks status of the agent
  • dump – take thread dump using kill -3

Start or Stop

To start or stop Bamboo Remote Agent.

<bamboo-agent-home>/bin/bamboo-agent.sh start
Mac OS X

bamboo-agent.sh

After installing, to run the agent from the console/command line, the <bamboo-agent-home>/bin/bamboo-agent.sh script will be available. This accepts one of the following arguments:

  • console – run in the foreground
  • start – start agent
  • stop – stop agent
  • restart – restart agent (runs stop then start)
  • status – checks status of the agent
  • dump – take thread dump using kill -3

Start or Stop

To start or stop Bamboo Remote Agent.

<bamboo-agent-home>/bin/bamboo-agent.sh start
Windows

Console

After installing, the following scripts will be available in <bamboo-agent-home>\bin:

  • BambooAgent.bat – run in the foreground
  • StartBambooAgent-NT.bat – start agent
  • StopBambooAgent-NT.bat – stop agent
  • InstallBambooAgent-NT.bat – install agent service
  • UninstallBambooAgent-NT.bat – uninstall agent service

Start

<bamboo-agent-home>\bin\StartBambooAgent-NT.bat

停止

<bamboo-agent-home>\bin\StopBambooAgent-NT.bat


インストール

Please expand the section for your Operating System.


Linux

Console

To install the agent to be run from the console, please use the following command:

java [parameters] -jar atlassian-bamboo-agent-installer-X.X-SNAPSHOT.jar <Bamboo Base URL>/agentServer/ install

Service

To install and run the Agent as a Linux service, please see Running Bamboo as a Linux service. The SystemD and SysV examples there are written for the Bamboo Server, but the agent installation commands are very similar.

Mac OS X

Console

To install the agent to be run from the console, please use the following command:

java [parameters] -jar atlassian-bamboo-agent-installer-X.X-SNAPSHOT.jar <Bamboo Base URL>/agentServer/ install

Service

To configure the Agent for automatic startup on Mac OS X, please see Configuring Bamboo to start automatically on startup on Mac OS X. The examples there are written for the Bamboo Server, but the agent installation details are very similar.

Windows

Console

To install the agent to be run from the console, please use the following command:

java [parameters] -jar atlassian-bamboo-agent-installer-X.X-SNAPSHOT.jar <Bamboo Base URL>/agentServer/ install

Service

To configure the Agent directly as a Service, without having to install a first time, please run the following command:

java [parameters] -jar atlassian-bamboo-agent-installer-X.X-SNAPSHOT.jar <Bamboo Base URL>/agentServer/ installntservice

Uninstall

To uninstall Remote Agent.

<bamboo-agent-home>\bin\UninstallBambooAgent-NT.bat

Troubleshooting Remote Agents

For information about Troubleshooting Remote Agents that have trouble starting or connectivity issues, please refer to this documentation:

Troubleshooting Remote Agents

Disabling or deleting an agent

For information about disabling or deleting an agent, please refer to this documentation:

Disabling or deleting an agent



最終更新日 2023 年 7 月 24 日

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

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