https://github.com/jenkinsci/skip-notifications-trait-plugin
Add a Jenkins trait to disable build notifications
https://github.com/jenkinsci/skip-notifications-trait-plugin
notifications skip
Last synced: 9 months ago
JSON representation
Add a Jenkins trait to disable build notifications
- Host: GitHub
- URL: https://github.com/jenkinsci/skip-notifications-trait-plugin
- Owner: jenkinsci
- License: mit
- Created: 2018-07-25T15:39:26.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2025-01-28T04:12:53.000Z (over 1 year ago)
- Last Synced: 2025-01-28T05:20:25.359Z (over 1 year ago)
- Topics: notifications, skip
- Language: Java
- Homepage: https://plugins.jenkins.io/skip-notifications-trait/
- Size: 368 KB
- Stars: 12
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Skip notifications trait plugin
[](https://ci.jenkins.io/job/Plugins/job/skip-notifications-trait-plugin/job/main/)
[](https://ci.jenkins.io/job/Plugins/job/skip-notifications-trait-plugin/job/main)
[](https://ci.jenkins.io/job/Plugins/job/skip-notifications-trait-plugin/job/main)
[](https://plugins.jenkins.io/skip-notifications-trait)
[](https://github.com/jenkinsci/skip-notifications-trait-plugin/releases/latest)
[](https://github.com/jenkinsci/skip-notifications-trait-plugin/blob/main/LICENSE.md)
[](https://plugins.jenkins.io/skip-notifications-trait)
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](https://plugins.jenkins.io/disable-github-multibranch-status/).
## Usage
### BitBucket
```Groovy
checkout resolveScm(
source: bitbucket(
repoOwner: 'example-owner',
repository: 'example-repository',
traits: [
bitbucketSkipNotifications(),
...,
]
)
)
```
### Github
```Groovy
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](./LICENSE.md)
## More information
It was initially submitted as a PR for core plugin [PR](https://github.com/jenkinsci/bitbucket-branch-source-plugin/pull/132), but owners suggested to package it as an extension.