Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53836

Office 365 Connector - allow additional information to be passed into teams message when using default webhooks

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Could the name that is defined in the webhook config be passed into the message?

      It appears the text used in Teams is pulled from the job name/displayname.

      What happens is my Jenkins display name is defined and I cannot change it - so that's gets sent into Teams - but I'd like to add some additional info into the message to better identify which job the message was coming from...

      So...

       

      Update from DISPLAY NAME IN JENKINS

       

      latest status of build #123

      Some additional info passed in via Jenkinsfile for default webhook

       

       

       

      office365ConnectorWebhooks([[
      {{ name: 'Some additional info passed in via Jenkinsfile for default webhook',}}
      {{ url: 'https://foobar'}}
      {{ ]]),}}

       

        Attachments

          Activity

          thecrumb Jim Priest created issue -
          thecrumb Jim Priest made changes -
          Field Original Value New Value
          Description Other plugins like email-ext allow you to list committers/culprits individually in build status messages. I don't know if the connector doesn't provide this level of detail in the webhook message or if my target MS Teams connector is deciding not to render it, so please close the issue if I need to talk to the MS Teams group on their uservoice. Currently the only data I see is "Remarks: Started by an SCM Change". If the build is started by a user action, that user's name is listed in the resulting message, but never when it's started by an SCM change. Thanks! Could the name that is defined in the webhook config be passed into the message?

          It appears the text used in Teams is pulled from the job name/displayname.

          What happens is my Jenkins display name is defined and I cannot change it - so that's gets sent into Teams - but I'd like to add some additional info into the message to better identify which job the message was coming from...

          So...

           
          {panel}
          Update from DISPLAY NAME IN JENKINS

           

          latest status of build #123

          _Some additional info passed in via Jenkinsfile for default webhook_

           
          {panel}
           

           

          {{office365ConnectorWebhooks([[}}
          {{ name: 'Some additional info passed in via Jenkinsfile for default webhook',}}
          {{ url: 'https://foobar'}}
          {{ ]]),}}

           
          thecrumb Jim Priest made changes -
          Environment Jenkins 2.33, Windows 2012r2, Java 1.7 64bit, Office 365 Connector 1.3
          thecrumb Jim Priest made changes -
          Environment Jenkins 2.136, Office 365 Connector 4.x
          Issue Type Improvement [ 4 ] New Feature [ 2 ]

            People

            Assignee:
            srhebbar Srivardhan Hebbar
            Reporter:
            thecrumb Jim Priest
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: