Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to disable bitbucket notifications on aborted jobs #773

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

pkucia
Copy link

@pkucia pkucia commented Oct 12, 2023

This PR adds an option to disable notifications for aborted Jobs. When the option: "Do not communicate aborted jobs to Bitbucket" is enabled in "Bitbucket build status notifications" configuration in Branch Sources, notification is ignored for
aborted jobs.

My use case is that we are aborting some branch builds in multibranch pipelines for certain internal conditions, typically leaving only PR builds to finish successfully. Bitbucket shows all Jobs, including aborted ones, and shows them as failed. It is misleading for many bitbucket users, as it is not actual failure - just expected abort.

Similar request was discussed here (to mark them as Cancelled): #606 however as I understand, it won't be implemented.

Your checklist for this pull request

  • Make sure you are requesting to pull a topic/feature/bugfix branch (right side) and not your master branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or in Jenkins JIRA
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Did you provide a test-case? That demonstrates feature works or fixes the issue.

@pkucia pkucia closed this Oct 12, 2023
@srnjak
Copy link

srnjak commented Apr 7, 2024

Why was this PR closed without merging?

@pkucia pkucia reopened this Jul 2, 2024
@pkucia pkucia force-pushed the feature/disableNotificationsOnAbortedJobs branch from 1473dcd to 619dea8 Compare July 10, 2024 21:16
@pkucia
Copy link
Author

pkucia commented Jul 28, 2024

The following option: "Do not communicate aborted jobs to Bitbucket" is added to Bitbucket build status notifications configuration in Branch Sources configuration:
image

When the option is enabled and build is aborted, notification is skipped.

@pkucia pkucia marked this pull request as ready for review July 28, 2024 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants