開発環境のタスク

Once you have created and configured your new deployment project and deployment environments, you can set up associated tasks for the deployment process. Bamboo allows you to execute a range of different tasks upon deployment including:

  • Bash and other shell commands
  • Bespoke written scripts
  • SCP, SSH and Artifact handler tasks
  • Ant executables
  • Maven 1.x, 2.x & 3.x executables
  • Tomcat executables
  • Heroku deployments

このページの内容:

 

 

Add an environment task

You can add tasks to a deployment environment either while you create the environment or afterwards. You can modify tasks any time after creating them.

  1. Open your deployment project and expand the relevant environment panel. 
  2. Click Edit tasks (under 'How you want to deploy').
    The 'Clean working directory' and 'Artifact download' tasks are included by default:


  3. Click Add task and choose a task. Only tasks applicable to the deployment environment will be available for selection. 



  4. Configure the task according to the needs of your deployment project. Different tasks will have different requirements.

    Remember that capability and requirement matching is still in effect for deployment environments. If your task does not have the right capabilities it will not be executed, even if the relationship has been defined.

  5. Click Save when you have finished. 
  6. Click Back to deployment project to return to the deployment project page.

Some useful deployment tasks

Deploying with Tomcat

You can use Bamboo to deploy and manage your Java web application with Tomcat 6 or 7, without having to directly interact with Maven, Ant or write special scripts.

See Using Tomcat with Bamboo for continuous deployment.

Copying and moving files with SCP

You can use the Bamboo SCP task to upload files from Bamboo directly to a remote server as part of a Bamboo job. The SCP task is able to copy multiple files and preserves the directory structure for the copied files.

See Using the SCP task in Bamboo.

Integrating with Heroku

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

See Using the Heroku task in Bamboo.

Deploying ASP.NET applications with MSDeploy

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

Assign a final task

Once all of your tasks have been configured, you may assign some or all of them to be Final Tasks. Final Tasks are always executed at the end of the build.

  1. Open your deployment project and expand the relevant environment panel. 
  2. Click Edit tasks (under 'How you want to deploy').
  3. To make a task final, simply drag the task below the 'Final tasks' bar:
  4. Click Back to deployment project to return to the deployment project page.
最終更新日 2013 年 11 月 18 日

この翻訳に満足しましたか?

はい
いいえ
この記事についてのフィードバックを送信する

Not finding the help you need?

コミュニティへの質問

Powered by Confluence and Scroll Viewport.