This is the documentation for Bamboo 5.6. View this page for the

Unknown macro: {spacejump}

of Bamboo, or visit the latest Bamboo documentation.

 

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

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. Under 'How you want to deploy', click on the Edit tasks button. The 'Set up tasks' screen will display. The Clean working directory and Artifact download tasks are included by default:


  2. From the Set up 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

    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.

  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.

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

Assigning 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.

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.
  • No labels