jenkinsci / office-365-connector-plugin

Office 365 Connector plugin sends jobs status notifications to Microsoft Teams or Outlook
https://plugins.jenkins.io/Office-365-Connector/
Apache License 2.0
89 stars 86 forks source link

Personal Channel for direct notification for builds #303

Open imsandli opened 1 year ago

imsandli commented 1 year ago

What feature do you want to see added?

Would be great if this plugin could be able to send personal/direct notification to jenkins users like the slack plugin..

With the Slack plugin, every user can configure his personal channel in the jenkins user settings.

A proposal could be: Every user could create his private channel and add an jenkins Connector to it. He configures his (new) webhook url in his jenkins user settings and jenkins could then send messages to his personal channel somehow like:

office365ConnectorSend user: User.get(currentBuild.rawBuild.getCause(Cause.UserIdCause).getUserId(), false),
    message: 'Application has been [deployed](https://url.com)',
    status: 'Success'

or

office365ConnectorSend userByMail: env.GIT_UPLOADER_EMAIL,
    message: 'Application has been [deployed](https://url.com)',
    status: 'Success'

Upstream changes

No response