Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-14400

Allow customization of Slack messages for Pipeline builds

    XMLWordPrintable

    Details

    • Feedback Policy:

      Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Description

      I wonder if it's possible for Bitbucket to either enhance the Slack messages for Pipeline builds to include more information, or allow repo administrators to format the body of the message themselves?

      Here is what I'm guessing is being generated for these Slack messages today:

      #!javascript
      
      {
          "text": "[chiphat/clock-app2] Build status updated to SUCCESSFUL",
          "attachments": [
              {
                  "title": "Pipeline for develop",
                  "title_link": "https://bitbucket.org/chiphat/clock-app2",
      			"color": "#36a64f"
              }
          ]
      }
      

      And here are the slightly more formatted messages with author information and commit messages that we like from other CI services:

      #!javascript
      
      {
          "attachments": [
              {
      			"color": "#36a64f",
      			"fallback": "[chiphat/clock-app2] Build status updated to SUCCESSFUL",
      			"fields": [
                      {
                          "title": "Build succeeded",
                          "value": "<http://bitbucket.org/chiphat/clock-app2/link-to-the-pipeline-build|The text of the commit message goes here: we added a seconds and minutes timer to go with the hours>",
                          "short": true
                      },{
                          "title": "Committer",
                          "value": "Joshua Tjhin",
                          "short": true
                      },{
                          "title": "Branch",
                          "value": "feature/seconds-minutes-timer",
                          "short": true
                      },{
                          "title": "Project",
                          "value": "clock-app2",
                          "short": true
                      }
                  ]
              }
          ]
      }
      

      I just wanted to broach the question and see if it was possible to implement at any point. Thanks!

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            tj.nicolaides tjnicolaides
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: