Track where your code is deployed with toolchains

Have you ever wanted to track where your code is deployed? With toolchains in IBM® Bluemix® Continuous Delivery, you can now track code deployments through tags, labels, and comments in your Git repository (repo).

For example, take a toolchain that includes Delivery Pipeline and uses a Git repo from the IBM hosted Git Repos and Issue Tracking service as an input. After the pipeline builds and deploys your app to your staging environment, the toolchain adds the deploy:staging label to your issues. You can then filter by that label to find out which fixes are in staging.

Each deployment creates a tag in your Git repo. You can find out which commits are deployed in an environment by selecting the tag.

Comments that include references to the environment and the automated build system are also added to the issue. You can easily navigate to the deployed app or to the job that deployed the app from your issue-tracking system (Issues) or from your source-code management system (Git).

In addition, if your toolchain contains IBM Cloud DevOps Insights, DevOps Insights can apply analytics to your tags and labels to provide insights into your project.

Track your code changes in issues

After the toolchain deploys your commit, any issues that are referenced in the commit’s comment are automatically updated with a comment and label.

The comment that is added to the issue contains the deployments details and links to the related components, including the toolchain, delivery pipeline, commit, and the deployed app on Bluemix.

You can create custom issue queries that are based on labels to track the issues that are deployed to an environment.

Track your code changes with tags

Tags in the Git Repos and Issue Tracking service

Each time a commit is deployed, a tag is created that shows all of the commits that are included in the deployment.

Tags in the Web IDE

In the Web IDE, you can see the tags in the Git commit history.

Get started tracking your code changes

You can try this new feature in two ways.

Create a toolchain that includes code deployment and issue tracking

Create a simple Cloud Foundry toolchain from a template by clicking the Create Toolchain button. In the toolchain, the code deployment and issue-tracking feature is enabled by default.

Create Toolchain

If you’d prefer to create a toolchain from another template, go to the Create a Toolchain page. In the following toolchains, the code deployment and issue tracking feature is enabled:

  • The Simple Cloud Foundry toolchain (v2) template

  • The Microservices toolchain with DevOps Insights (v2) template

Enable code deployment and issue tracking for a toolchain

If you already have a toolchain, you can enable code deployment and issue tracking for the toolchain:

  1. On the Toolchains page, select your toolchain.

  2. Right-click the Git repo card and click Configure.

  3. Make sure that the repository type is Existing, and select the Track deployment of code changes check box.

Resources

Working with toolchainsWorking with Git Repos and Issue Tracking

Categories

More from devops

IBM Cloud Continuous Delivery Now Supports Event Notifications

2 min read - We are pleased to announce that IBM Cloud Continuous Delivery now includes a tool integration with IBM Cloud Event Notifications. This integration allows administrators to configure toolchains to send notifications of events in a toolchain or a tool integration to other users or human destinations. In addition, these event notifications can be sent to other applications (such as IBM Cloud Functions) to build logic by using event-driven programming using webhooks, for example. With the new Event Notifications integration, toolchain administrators…

New Java, Python and Node SDKs and APIs for IBM Cloud Continuous Delivery

2 min read - We are pleased to announce the general availability of new language support for Toolchains-as-Code capabilities in IBM Cloud Continuous Delivery. The new IBM Cloud Continuous Delivery Java, Python and Node.js SDKs allow developers to programmatically interact with the IBM Cloud Toolchain and Tekton Pipeline API services and add to the Go language support that was previously available. In a previous blog article, we discussed the benefits of managing your Toolchains- and Pipelines-as-Code, which include the following: Easier management of multiple…

Deploy Resources and Toolchains with Terraform

3 min read - The journey to modernize our delivery pipeline continues. Learn how we moved to a Tekton CI/CD pipeline that is deployed using Schematics-managed Terraform (Toolchain as Code). The IBM Cloud solution tutorial Apply end-to-end security to a cloud application, like many, comes with code and a related GitHub repository. As a reader, you can either follow all the steps and manually create services and deploy the application, or you can take a shortcut and use an automation. Over time, the automation…

IBM Cloud Continuous Delivery Is Now IBM Cloud for Financial Services Validated

2 min read - We are pleased to announce that IBM Cloud Continuous Delivery is now IBM Cloud for Financial Services Validated. IBM Cloud for Financial Services Validated designates that a service has evidenced compliance to the controls of the IBM Cloud Framework for Financial Services and can be used to build solutions that might themselves be validated. Through the shared responsibility model of the framework and the surrounding standardized processes, financial institutions and ecosystem partners get benefits like the following: Less time spent…