Skip to content

Cannot post message to MS Teams chat #404

@realdadfish

Description

@realdadfish

Jenkins and plugins versions report

I'm using the plugin version 5.1.0. When setting up the plugin to send a webhook via PowerAutomate via

 office365ConnectorSend webhookUrl: 'https://prod-25.westeurope.logic.azure.com:443/workflows/3e...',
                            message: "Nightly build (${env.BUILD_NUMBER}) failed (<${env.BUILD_URL}|Open>)",
                            adaptiveCards: false # regardless what I put here

the PowerAutomate workflow fails with

The execution of template action 'Send_each_adaptive_card' failed: the result of the evaluation of 'foreach' expression '@triggerOutputs()?['body']?['attachments']' is of type 'Null'. The result must be a valid array.

I have not configured anything else on Jenkins admin level.

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux

Reproduction steps

See above

Expected Results

See above

Actual Results

See above

Anything else?

No response

Are you interested in contributing a fix?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions