Search Unity

  1. Unity 2018.3 is now released.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We've updated our Terms of Service. Please read our blog post from Unity CTO and Co-Founder Joachim Ante here
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

Cloud Build Integration Doesn't Work w/ Microsoft Teams Incoming Webhook

Discussion in 'Unity Cloud Build' started by jb_play, Jan 9, 2019.

  1. jb_play

    jb_play

    Joined:
    May 3, 2018
    Posts:
    3
    Any help troubleshooting this further and finding a resolution would be appreciated.

    Using Unity Cloud Build and an Integration configured for Build Success and Failure:
    We are trying to send the build success or failure messages to a Microsoft Teams Channel.

    Steps taken:

    1. Created the Incoming Webhook in Microsoft Teams.
    2. Added the URL on the Integrations page of Unity
    3. Kicked off a cloud build.
    Expected: On success or failure, We expected a message in the Microsoft Teams channel
    Actual: No message was posted to the channel. There was no indication of an error we could find.

    Troubleshooting Steps Taken:
    1. Created a Discord Integration. Upon build completion, the notification in Discord was received.
      • Verified the other iterations were working for us.
    2. Used PowerShell to manually submit a Post command with the JSON to the Microsoft Teams channel
      • Verified the URL generated by Microsoft Teams for the webhook was correct.
      • Verified Microsoft Teams received and posted the message to the channel
    3. Took a wild guess... created an outgoing Microsoft Teams Outgoing Webhook to get a security token. We added this to the Integration as an Authorization Secret/HMAC-SHA256 Signature.
      • This did not work.
    4. Searched the internet, forums, and issue logs for any mention of using Unity Integrations with Microsoft Teams. We couldn't find a single case/question/post where this has been done.
    Microsoft Documentation for Teams webhooks: https://docs.microsoft.com/en-us/outlook/actionable-messages/send-via-connectors
     
  2. timtunity3d

    timtunity3d

    Unity Technologies

    Joined:
    Oct 1, 2015
    Posts:
    42
    Are you having CloudBuild post directly to the channel or do you have a translation layer to transform the JSON to the MessageCard format?
     
  3. jb_play

    jb_play

    Joined:
    May 3, 2018
    Posts:
    3
    I was trying to use the out-of-the-box, cloud build functionality.
     
  4. victorw

    victorw

    Unity Technologies

    Joined:
    Sep 14, 2016
    Posts:
    26
    Cloud Build webhooks do not currently support Microsoft Teams integrations directly so what will be sent to your configured recipient is generic JSON. Microsoft Teams requires the JSON it receives to have a very specific format, so you will need to configure a translation server to redirect the request. Another forum user has created their own translation layer which might work for you.
     
  5. jb_play

    jb_play

    Joined:
    May 3, 2018
    Posts:
    3
    Awesome! Thanks for the answers on that.