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

Announcements

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard