Press this button, to get your own copy of a Java sample demonstrating Cloudant running in Bluemix !
This sample illustrates the new way of configuring a pipeline using a config file, located at ".bluemix/pipeline.yml" from the root of the repository.
The config file is creating 2 stages:
- Ant builder stage (using build.xml at the root by default)
- Deploy stage (using a custom script defined in the config file)
Note that the config file is using environment variables to abstract away target locations so it will work nicely with the Deploy to Bluemix button, setting these variables based on user selection:
- ${CF_APP} - the selected app name to deploy
- ${CF_TARGET_URL} - a Bluemix region (CF API URL)
- ${CF_ORGANIZATION_ID} - an organization to deploy to in the selected region
- ${CF_SPACE_ID} - a space in the selected organization
Also note that the config files is customizing the deploy script to also create a backend service (Cloudant) right before the CF PUSH action. In earlier version of the Deploy To Bluemix button, service creation had to be driven via a manifest.yml unofficial extension ("declared-services"). This is no longer necessary using this new support for pipeline configuration.