Skip Notifications Trait

Build Status Coverage LOC Jenkins Plugin GitHub release GitHub license Jenkins Plugin Installs

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:

image

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.