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