web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Jenkins notifications

(1) ShareShare
ReportReport
Posted on by 2
Configuring a workflow to receive Jenkins build notifications on a teams channel
 
- Create a workflow for a channel -> When a teams webhook request is received -> apply to each -> Select an output from previous steps Body - post card in chat or channel 
- This results in an error below
 
===
ExpressionEvaluationFailed. The execution of template action 'Apply_to_each' failed: the result of the evaluation of 'foreach' expression '@triggerBody()' is of type 'Object'. The result must be a valid array.
===
 
 
==== 
Request looks something like 
httpRequest contentType: 'APPLICATION_JSON', httpMode: 'POST', ignoreSslErrors: true, requestBody: '''{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.3",
"body": [
{
"type": "TextBlock",
"text": "Jenkins Build Notification",
"weight": "bolder",
"size": "large"
},
{
"type": "TextBlock",
"text": "Job: ${JOB_NAME}",
"isSubtle": true,
"wrap": true
},
{
"type": "TextBlock",
"text": "Build Number: ${BUILD_NUMBER}",
"isSubtle": true,
"wrap": true
},
{
"type": "TextBlock",
"text": "Build Status: ${currentBuild.currentResult}",
"wrap": true
},
{
"type": "TextBlock",
"text": "Build URL: [Link](${BUILD_URL})",
"wrap": true
}
]
}''', responseHandle: 'NONE', url: 'https://<Teams Webhook URL>', wrapAsMultipart: false
 
 
Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard