The following plugin provides functionality available through Pipeline-compatible steps. Read more about how to integrate steps into your Pipeline in the Steps section of the Pipeline Syntax page.

For a list of other such plugins, see the Pipeline Steps Reference page.

BearyChat Plugin

bearychatSend: Send BearyChat Message

Simple step for sending a BearyChat message to specified channel.
Use the advanced settings to override the BearyChat Plugin global configuration to include: webhook and channel.
Please see the BearyChat Plugin global configuration for more details on the fields. Usage Example:
bearychatSend "Build Started - ${env.JOB_NAME} ${env.BUILD_NUMBER} (<${env.BUILD_URL}|Open>)"
  • message : String
    This is the main text in a message attachment, and can contain standard message markup. The content will automatically collapse if it contains 700+ characters or 5+ linebreaks, and will display a "Show more..." link to expand the content. Message may include global variables, for example environment and currentBuild variables:
    bearychatSend "Started [${env.JOB_NAME} #${env.BUILD_NUMBER}](${env.BUILD_URL})"
  • attachmentText : String (optional)
    Add an optional attachment text for BearyChat Message. bearychatSend message: "Job ${env.JOB_NAME} Failed", color: "#ff0000", attachmentText: "Exception: NullPointerException"
  • channel : String (optional)
    Allows overriding the BearyChat Plugin channel specified in the global configuration.
    bearychatSend channel: "#channel-name", message: "Build Started: ${env.JOB_NAME} ${env.BUILD_NUMBER}"
  • color : String (optional)
    An optional value that can either be one of green, red, grey, yellow, or any hex color code (eg. #439FE0). This value is used to color the border along the left side of the message attachment. (So you must use with `attachmentText`)
    bearychatSend color: "#439FE0", attachmentText: "Build Started: ${env.JOB_NAME} ${env.BUILD_NUMBER}"
  • failOnError : boolean (optional)
    If set to true, then the step will abort the Workflow run if there is an error sending message.
    bearychatSend failOnError: true, message: "Build Started: ${env.JOB_NAME} ${env.BUILD_NUMBER}"
  • notification : String (optional)
  • title : String (optional)
    Add attachment title for BearyChat message. bearychatSend title: "${env.JOB_NAME} #{env.JOB_NUMBER}", url: "{env.BUILD_URL}"
  • url : String (optional)
    You can specify a URL for attachment title. bearychatSend title: "${env.JOB_NAME} #{env.JOB_NUMBER}", url: "{env.BUILD_URL}"
  • webhook : String (optional)
    Allows overriding the Bearychat Plugin Webhook URL specified in the global configuration.

Was this page helpful?

Please submit your feedback about this page through this quick form.

Alternatively, if you don't wish to complete the quick form, you can simply indicate if you found this page helpful?

    


See existing feedback here.