Example Source:
https://github.com/cloudfoundry-samples/springmvc-hibernate-template
Info |
---|
Service creation from manifest.yml not supported so you must create the services in separate Services tasks. Binding services listed in manifest.yml is supported so you don't need to bind them separately. |
To deploy the example app, configure a Job with the following tasks:
- Checkout source
- Build the WAR file using Maven 3:
mvn clean package
- Create the required postgresql-for-cf-and-spring-sample PostgreSQL service using the Service Task.
- Create the required redis-for-cf-and-spring-sample Redis service using the Service Task.
- Configure a Push Task for deploying the WAR file
- Select your target
- The Application Location defaults should be sufficient
- Select Manifest File for the Configuration Option.
- (Optional) Check Wait for startup to complete? if you want Bamboo to monitor the deployment process.
You can now run the Plan and the application will be deployed.
Info |
---|
The screenshot shows creating the required services in their own tasks. This is another option but not the one outlined here. |