Bamboo での SCP タスクの使用

このページの内容

お困りですか?

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

コミュニティに質問

Bamboo SCP タスクを使用すると、Bamboo ジョブの一環として、Bamboo ディレクトリから、リモート サーバーにファイルをアップロードすることができます。SCP タスクでは、複数のファイルをコピーすることができます。コピーされたファイルのディレクトリ構造は保持されます。

See Configuring a deployment task for an overview of Bamboo deployment tasks.

SCP タスクを設定する方法:

  1. ジョブのタスク設定タブに移動します(新しいプランを作成するとデフォルト ジョブとなります)。
  2. Select the name of an existing SCP task, or click Add task > SCP Task to create a new task.
  3. Complete the following settings:
     
    Task description
    Helps you identify the purpose of the task.

    Disable this task
    Check, or clear, to selectively run this task.

    Add condition to task
    Make task run only when a certain condition is met. 
    You can find conditions on Atlassian Marketplace or implement your own.  


    Host
    The hostname or IP address of the remote server to which the files will be copied.

    Verify remote host fingerprint on connect
    Enter the host fingerprint to be verified. See below for more details.

    Port
    The port number of the remote host that is used for the SSH connection. The default value is 22.

    Username
    The username to use to connect to the remote host.

    Authentication Type
    Password – the password associated with Username.
    Key without passphrase – browse to the SSH private key with which to authenticate with the remote host.
    Key with passphrase – browse to the SSH private key, and supply the passphrase, to use to authenticate with the remote host.

    Local Path
    The local path (relative to the Bamboo working directory) to the files you want to copy. Use commas to separate files and directories. You can also use Ant-style pattern matching to include multiple files, such as **/target/*.jar.

    Remote Path
    The path to the destination directory on the remote server.


  4. 保存 を選択します。

SCP task type configuration


ホスト フィンガープリント

以下のコマンドを実行して、ホストのフィンガープリントを判断することができます。

ssh-keygen -l -F <HOSTNAME>

以下のスクリーンショットに示すように、フィンガープリントはレスポンスの一部です。

最終更新日 2021 年 6 月 2 日

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

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