September 13, 2017 | Written by: Steven Weaver
Categorized: DevOps | How-tos
Share this post:
In my previous post, we discussed how, for development teams getting started with new cloud projects, whether they’re mobile, web, or IOT, setting up the needed resources, DevOps services and tools can take up a significant amount of time – time the delivery team could use being productive and innovative in their approach to continuous delivery of apps. In that post, I covered how to use a template to rapidly deploy an integrated DevOps toolchain that included tools from IBM, like Delivery Pipeline or DevOps Insights, as well as repositories from GitHub, testing tools from Sauce Labs, and so on.
In this post, we’ll talk about how you can create a DevOps toolchain in Bluemix using Bluemix Continuous Delivery if you’ve already built and deployed an application.
Creating a Toolchain from an existing application
Creating an app from the Bluemix catalog
Let’s begin by creating a new app from the Bluemix catalog. I’ve chosen a Liberty for Java implementation, which will provision a highly composable, ultra-fast, ultra-light profile of IBM WebSphere Application Server designed for the cloud. I simply provide a name for my app, and Bluemix will provision the rest for me, including a sample app.
Create a new Cloud Foundry application
As soon as the provisioning is completed, I can view the running app in my browser.
Basic Hello World! Java app
In the menu, if I select Cloud Foundry apps, and choose my app from the list, I can view the app’s parameters, including runtime information, any service connections, and logs.
App Dashboard for Java App
Enabling Continuous Delivery and DevOps toolchains
Scrolling down, I can also enable continuous delivery, which will create a new DevOps toolchain for this application, allowing me to put in place an agile software development workflow that not only increases the speed in which teams can deploy software and bug fixes, but also enables developers to build software that is more inline with customers’ requests and needs.
Enable Continuous Delivery
In this case, the provisioned toolchain will include a Git repository and issue tracker hosted on Bluemix by IBM, a full featured Web IDE based on Eclipse Orion, and an automated delivery pipeline. I simply need to click create to instantiate the toolchain.
Now that the toolchain is instantiated and configured, I can go ahead and modify it if desired by clicking the Add a Tool button that will take me to the integration catalog, which includes integrations with dozens of additional tools from IBM, open source or third party suppliers.
Modifying the Application
To see the pipeline in action, I can modify some code in the Web IDE. Here, I’m just changing the text of the welcome messaging in the java servlet.
Edit app code in Web IDE
After I commit the code into the Git repository, the pipeline will automatically redeploy the application. My default pipeline has just two stages – one that builds the application, and one that deploys it. You can have as many stages as you need for your application, for building, deploying and testing your application. In addition, within each state, multiple jobs can be run – for example, running code coverage or unit tests, or for security or functional testing.
Once the deployment is complete, the browser can be refreshed to see the updated application.
Bluemix Continuous Delivery makes it easy for you to quickly develop, build, and deploy applications on IBM Cloud. Bluemix Continuous Delivery provides a unified user interface, enabling you to easily manage your software development activities in one place. As shown in this article, it’s easy to add toolchains to existing applications, just by a click of a button.
You can get started using Bluemix Continuous Delivery for developing new software projects on IBM Cloud today. Learn more by reviewing the Toolchain information on the IBM Cloud Garage Method pages, and the Bluemix Continuous Delivery user guide documentation.