Bamboo での SSH タスクの使用
To configure an SSH task:
- ジョブのタスク設定タブに移動します(新しいプランを作成するとデフォルト ジョブとなります)。
- Select the name of an existing SSH task, or select Add task > SSH Task to create a new task.
Complete SSH task configuration settings:
設定 説明 タスクの説明 Optional description for the configured task. このタスクを無効化 Prevent the task from running. Add condition to task Run the task only when a certain condition is met. - Condition type (for SSH tasks, Variable is the only available option)
- Variable name (the name of the Bamboo variable to base the condition on)
- Condition (the conditional keyword):
- 存在する
- not exists
- equals (exact value)
- not equals (exact value)
- matches (regular expression to match variable value)
ホスト Hostname or IP address of the remote host. Authentication type Choose whether Bamboo should authenticate with the host using a Username and password or SSH private key, and then either provide custom credentials or select shared credentials.SSH command The shell command to execute on the remote host. You can only enter a single command here.
You can configure a remote host to accept build-specific variables sent from Bamboo as environment variables for use in shell scripts run by the SSH task.
If you want Bamboo to verify the remote host fingerprint on connection, under Advanced options, select Verify remote host fingerprint on connect, and then paste the host fingerprint.
You can determine the fingerprint for a host by running the following command from a Unix terminal, where
<HOSTNAME>
is the fully-qualified domain name or IP address of the remote host:ssh-keygen -l -F <HOSTNAME>
例:
ssh-keygen -l -F myhost.acme.com
Select Save .