Not able to get Jenkins notification in teams channel with workflow "Post to a channel when a webhook request is received"
I am creating a workflow in my Microsoft Teams channel to post to a channel when a webhook request is received. After creating it, I received the webhook URL. In the next step, I set up a "Post card to channel" action in Microsoft Teams when the webhook request is received and filled in the details. However, I am still not receiving any notifications in Teams.
Afterward, I tried using the "Post in a chat or channel" option instead of "Post card to channel" in Microsoft Teams, and I configured it with the following message: Build #@{triggerOutputs()?['build_number']} finished with status: @{triggerOutputs()?['build_status']}. Remarks: @{triggerOutputs()?['build_description']}.
Even then, I am not receiving any notifications in Teams. The notification only displays "Build," "finished with status," and "Remarks," but without the actual build number or remarks.
Could someone please help me set up Jenkins notifications in Microsoft Teams using the workflow option?
Thanks in advance!