skip-notifications-trait-plugin

Add a Jenkins trait to disable build notifications

MIT License

Stars
12
Committers
10

Skip notifications trait plugin

This is an extension plugin which adds custom feature to the Bitbucket and GitHub Branch Source plugins, allowing to disable build status notifications.

Similar to the Disable GitHub Multibranch Status plugin.

Usage

BitBucket

  checkout resolveScm(
    source: bitbucket(
      repoOwner: 'example-owner',
      repository: 'example-repository',
      traits: [
        bitbucketSkipNotifications(),
        ...,
      ]
    )
  )

Github

  checkout resolveScm(
    source: github(
      repoOwner: 'example-owner',
      repository: 'example-repository',
      traits: [
        githubSkipNotifications(),
        ...,
      ]
    )
  )

Via Jenkins UI

Edit the configuration of your job under Branch Sources Behaviors → Search for Skip build status notifications:

Don't forget to save the changes.

License

MIT License

More information

It was initially submitted as a PR for core plugin PR, but owners suggested to package it as an extension.