Skip to content

jenkinsci/skip-notifications-trait-plugin

Repository files navigation

Skip notifications trait plugin

Build Status 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(),
        ...,
      ]
    )
  )

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.