User Quick Start Guide

You can integrate Atlassian Bamboo with any Cloud Foundry cloud using the Cloud Foundry Bamboo Plugin. This article will guide you through setting up the plugin and deploying WAR artifacts to Cloud Foundry from Bamboo to build continuous integration workflows.

Prerequisites

  1. Bamboo 5.0 or higher
  2. A cloudfoundry.com account and a working knowledge of Cloud Foundry. Other Cloud Foundry v2 compatible platforms may be substituted.

Installation

  1. In Bamboo, go to Administration | Plugin Manager | Install Plugins.
  2. Search for the Cloud Foundry Plugin for Bamboo.
  3. Expand the entry and click Install.
  4. You may need to restart Bamboo before you can use the plugin. Follow the instructions presented by the Universal Plugin Manager.

Configure a Target

Administrator Activity

You must have administrator permissions to create and configure Cloud Foundry targets

  1. In Bamboo, go to Administration | Cloud Foundry | Configuration.
  2. Select the Credentials tab.
  3. Select Create Credentials and enter your cloudfoundry.com credentials.
  4. (Optional) If you are behind a proxy server, select the Proxy Servers tab and configure a proxy server.
  5. Select Create Target
    1. Enter CloudFoundry.com in the URL field
    2. Enter http://api.run.pivotal.io in the URL field.
    3. Select the credentials you entered in step 3.
  6. Save the target.
  7. After creating the target, you can can select it from the Available Targets list to verify the configuration.

Example WAR Deployment

  1. In Bamboo, click on Create Plan | Create a New Plan.
  2. Complete the form with details about your project and click Configure Tasks.
  3. Add a task to create the WAR artifact to your plan. For example, in Maven-based projects, this would typically be the package goal.
  4. Click Add Task and choose the Cloud Foundry Push task.
  5. In the configuration form, specify:
    1. your oganization and space
    2. the name you want to give your app
    3. the number of instances you want to deploy
    4. the URL(s) to bind to your application
    5. any other parameters specific to your application
  6. Complete any other plan details and enable the plan.
  7. click Run | Run Plan.