This document provides details on how to build integrated pipelines for Hybrid clouds using Cloudbee’s Jenkins, Artifactory and Pivotal Cloud Foundry with and emphasis on software delivery.
We will explore two use cases which are very common when releasing software,
-
Continuous Deployment of a software release to different locations using Cloud Foundry.
-
Software promotion using Blue/Green deployments with Cloud Foundry.
This repository contains the instructions for creating your own Jenkins Jobs to perform the use cases outlined above. It also contains a script called deployment and promotion which can be used independently of Jenkins to create your own scripts to cut-n-paste into Jenkins. These scripts test the different CF CLI commands outside of Jenkins to make testing easier.
Our example application is PCF Map which is a Spring application designed to demonstrate Cloud Foundry features. The application demonstrates the following Cloud Foundry features,
-
Simple CF CLI commands to delivery an application into Cloud Foundry
-
Binding to a Cloud Foundry managed service, Rabbit in this case.
-
Spring Auto-Reconfiguration, inject service credentials during deployment, environment variables, etc.
-
Application Health Management, the Kill button will exit the application and cause Cloud Foundry to create a new instance.
Let’s review the steps required to implement these use cases.