wab301 / office-365-connector-plugin

Office 365 Connector plugin for Jenkins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Travis Status Shippable Status Popularity

Codacy Badge Coverage Status

Office-365-Connector

Office 365 Connector plugin for Jenkins

Plugin is used to send actionable messages in Outlook, Office 365 Groups, and Microsoft Teams.

Screenshots

Microsoft Teams

Configuration

Message

Microsoft Outlook

Outlook

Jenkins Instructions

  1. Install this plugin on your Jenkins server
  2. Configure it in your Jenkins job and add webhook URL obtained from office 365 connector.

DSL Example

job('Example Job Name') {
    description 'Example description'
    configure { project ->
        project / 'properties' << 'jenkins.plugins.office365connector.WebhookJobProperty' {
            webhooks {
                'jenkins.plugins.office365connector.Webhook' {
                    name('Example Webhook Name')
                    url('https://example.com')
                    startNotification(false)
                    notifySuccess(true)
                    notifyAborted(false)
                    notifyNotBuilt(false)
                    notifyUnstable(true)
                    notifyFailure(true)
                    notifyBackToNormal(true)
                    notifyRepeatedFailure(false)
                    timeout(30000)
                    macros(class: 'empty-list')
                }
            }
        }
    }
}

Developer instructions

Install Maven and JDK. This was last build with Maven 3.2.5 and OpenJDK 1.7.0_75 on KUbuntu 14.04.

Run unit tests

mvn test

Create an HPI file to install in Jenkins (HPI file will be in target/slack.hpi).

mvn package

Documentation

You may find useful below link if you like to contribute and add new feature:

About

Office 365 Connector plugin for Jenkins

License:Apache License 2.0


Languages

Language:Java 98.0%Language:HTML 2.0%