How-tos

Quickly Develop, Build, and Deploy Applications on IBM Cloud with DevOps services – Part 2

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 App

Create a new Cloud Foundry application

As soon as the provisioning is completed, I can view the running app in my browser.

Running app

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

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

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.

Create Toolchain

Create 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.

Provisioned toolchain

Provisioned toolchain

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.

Code Editor

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.

Delivery Pipeline

Delivery Pipeline

Once the deployment is complete, the browser can be refreshed to see the updated application.

Updated App

Updated App

Summary

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.

More How-tos Stories

Use your own branded UI for user sign-in with App ID

With IBM Cloud App ID’s Cloud Directory feature, you can create a user registry, and add sign-up and email/password sign-in to your mobile or web app. Cloud Directory comes with a pre-built sign-in widget that you can use, or if you prefer to use your own branding, you can replace it with your own custom UI. This blog will show you how to use Cloud Directory APIs and add your own custom sign-in screen to an Android application. You can find the Android Cloud Land App on GitHub.

Continue reading

For Performant Swift Serverless actions…

While coding and drafting “Mobile app with a Serverless Backend”, We came up with an idea to use Swift on the server-side for the iOS app (it’s an interesting use case).So, that it will cater the full stack swift developers out there. The same is true for the Android version of the app as well.

Continue reading

App Launch on IBM Cloud Services

In an era of Continuous delivery - the defect fixes, enhancements and changes are delivered swiftly into production. If the users are happy about the change, good Job! If not, it is a risky task to roll back a feature which involves a lot of effort before a significant damage has been done. To avoid such instances, we must partner with our users early in the app development life cycle. Business innovation must be driven by customer experience.

Continue reading