Notifications

How to setup operator notifications.

Slack

Please follow this instructions to get web hook URL.

Create web hook secret with name jenkins-operator-notification-data. Contains key url with provided web hook URL.

$ kubectl create secret generic jenkins-operator-notification-data --from-literal=url=<webhook_url>

Example configuration for Slack:

kind: Jenkins
spec:
  master:
    notifications:
    - loggingLevel: info
      verbose: true
      name: 
      slack:
        webHookURLSecretKeySelector:
          secret:
            name: 
          key: 

Microsoft Teams

Please follow this instructions to get web hook URL.

Example configuration for Microsoft Teams:

kind: Jenkins
spec:
  master:
    notifications:
    - loggingLevel: info
      verbose: true
      name: 
      teams:
        webHookURLSecretKeySelector:
          secret:
            name: 
          key: 

Mailgun

Example configuration for Mailgun:

kind: Jenkins
spec:
  master:
    notifications:
    - loggingLevel: info
      verbose: true
      name: 
      mailgun:
        domain: 
        apiKeySecretKeySelector:
          secret:
            name: 
          key: 
        recipient: 
        from: 

Debug options

As you see there is two debugging options:

  • loggingLevel (warning/info) - Set level of messages to send.

  • verbose - Print stacktrace and additional error messages

Multiple providers

You can use multiple providers to send notification to another communication channels at the same time. For example you will send notifications to Slack and Teams.

kind: Jenkins
spec:
  master:
    notifications:
    - loggingLevel: info
      verbose: true
      name: nslack
      slack:
        webHookURLSecretKeySelector:
          secret:
            name: 
          key: 
    - loggingLevel: info
      verbose: true
      name: nteams
      teams:
        webHookURLSecretKeySelector:
          secret:
            name: 
          key: 
Last modified December 20, 2019