新しいデプロイ プロジェクトとデプロイ環境を作成して設定したら、デプロイ プロセスに関連するタスクをセットアップできます。Bamboo では、デプロイ時に次のようなさまざまなタスクを実行できます。

  • Bash やその他のシェル コマンド
  • 特注のスクリプト
  • SCP、SSH、アーティファクト ハンドラーのタスク
  • Ant 実行可能ファイル
  • Maven 1.x、2.x、3.x 実行可能ファイル
  • Tomcat 実行可能ファイル
  • Heroku デプロイ

On this page:

 

 

Adding an environment task

Tasks may be added to a deployment environment during or after the environment creation process; tasks may also be edited and changed afterwards as well.

To add a task to a deployment environment:

  1. Open your deployment project and expand the relevant environment panel. In the Other settings section, click on the Tasks button. The 'Set up tasks' screen will display:


  2. From the Setup tasks screen, click on the Add Task button. The 'Task type' selection window will display:


  3. Click on the task type that you want to use. Only tasks applicable to the deployment environment will be available for selection. The task configuration window will open, and you can configure the task according to the needs of your deployment project. Different tasks will have different requirements

    機能と要件のマッチングはデプロイ環境にも適用されることを忘れないでください。適切な機能がないタスクは、関係が定義されていても実行されません。

  4. Click on the Save button to save your task configuration. The Setup tasks screen will display again. Your newly configured task will display in the left side of the pane:
  5. Click on the Add Task button to add additional tasks to your environment and complete the above process again
  6. When all of the tasks have been set up, click on Back to deployment project to return to the deployment project page.

いくつかの便利なデプロイ タスク

Tomcat を使用してデプロイする

Bamboo では、Tomcat 6 または 7 を使用して Java Web アプリをデプロイして管理できます。Maven や Ant を直接操作したり、特別なスクリプトを記述したりする必要はありません。

See Using Tomcat with Bamboo for continuous deployment.

SCP を使用してファイルをコピーおよび移動する

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

See Using the SCP task in Bamboo.

Heroku と統合する

You can use Bamboo to deploy your Java web application to the Heroku cloud platform.

See Using the Heroku task in Bamboo.

MSDeploy を使用して ASP.NET アプリをデプロイする

You can use Bamboo to deploy your ASP.NET web application by using a Script task to run msdeploy.exe.
The MSDeploy command-line syntax is available at: http://technet.microsoft.com/en-us/library/dd569106(v=ws.10).aspx

Assigning a final task

すべてのタスクを設定したら、その一部またはすべてを最終タスクとして割り当てることができます。最終タスクは常にビルドの最後に実行されます。

To assign a final task:

  1. Open your deployment project and expand the relevant environment panel. In the Other settings section, click on the Tasks button to display the 'Set up tasks' screen.
  2. To make a task a Final Task, simply drag the task beneath the Final Task bar in the Setup tasks window:
  3. Click on Back to deployment project to return to the deployment project page.

Editing an environment task

If you have already added some tasks to an environment, then they can be easily changed at a later stage. To edit environment tasks:

  1. Open your deployment project and expand the relevant environment panel. Click on Edit tasks. The 'Setup tasks' screen will appear:


  2. Existing tasks can be edited by clicking on the task in the left hand pane of the setup window
  3. New tasks can be added by clicking on the Add Task button and following the process described in the above section
  4. Unwanted tasks can be deleted from the environment by clicking on the cross icon belonging to the task.
  • ラベルなし