jenkinsci/office-365-connector-plugin

Plugin ignores ``500 - Internal server error``

stmlange opened this issue · 5 comments

Jenkins and plugins versions report

Environment
Jenkins: 2.303.2
OS: Linux - 5.4.0-91-generic
---
Office-365-Connector:4.15.2

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

N/A

Reproduction steps

  1. Use an invalid webhook that results in a Internal Server on MS Teams side:
curl.exe -H "Content-Type:application/json" -d "{'text':'Hello World'}" https://outlook.office.com/webhook/deadbeef
  1. Run the plugin with
office365ConnectorSend(
        webhookUrl: 'https://outlook.office.com/webhook/deadbeef',
        color: 'red',
        message: "Build failed: ${JOB_NAME} - ${BUILD_DISPLAY_NAME}")

Expected Results

Error message in the logs

Actual Results

Nothing. No messages. Hard to troubleshoot what's going in within the plugin.

Anything else?

No response