IBM Cloud Docs
Communicating with your toolchains

Communicating with your toolchains

Communicate with your toolchain so you can automatically see when a pipeline stage passes or fails. You can communicate with your toolchain by sending your pipeline status to IBM.

Before you begin

Before you notify your toolchain, you must evaluate a gate policy on an application build. For more information, see Evaluating gates by using Jenkins.

Using notifyOTC

Send the pipeline status to your toolchain by using the notifyOTC command. This task requires two parameters, and it can also take an extra optional one.

Parameters and definitions for communicating with toolchains
Parameter Definition
stageName The current pipeline stage's name.
status The current pipeline stage's status. Using SUCCESS, FAILURE, or ABORTED automatically highlights the text in Slack.

The following examples illustrate how to use the notifyOTC step in both declarative and scripted pipeline definitions:

notifyOTC stageName: "Deploy", status: "SUCCESS"