-
Notifications
You must be signed in to change notification settings - Fork 35
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
Make git notes not trigger jenkins pipeline #1288
Conversation
Context: Bitbucket is generating ghost commits that have the commit message "Notes added by 'git notes add'" if git-notes is used (e.g. with semantic-release). To prevent Jenkins starting builds that will result in failure because there is nothing to build, the build should be stopped when those commits are coming in.
@ElfenB after a little test this change does not seems to break anything on component pipeline and makes git notes changes not trigger it. |
Perhaps we could achieve a similar result by checking the ref that is provided from Bitbucket? If the namespace "refs/notes" would be ignored when building that would make more sense than ignoring a commit message? Because notes can't be built really because they are not pointing to some commit with code. So that is an error/bug anyways. |
@braisvq1996 As discussed, I adapted the logic it to match on the ref display-id instead of the commit message to be more open for different tools. |
thanks @ElfenB, I will test it out once I get some time for thsi |
@ElfenB, thanks for your contribution and the review, @oalyman. We will schedule this for the next possible release. We will also ensure that there are no side effects by executing our automated tests before the merge to master. You will not need to provide any automated tests for your implementation. |
@braisvq1996 let's make sure this will be included in the next release possible |
@ElfenB please resolve the CHANGELOG.md conflict |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested it and works properly
Context: Bitbucket is generating ghost commits that have the commit message "Notes added by 'git notes add'" if git-notes is used (e.g. with semantic-release). To prevent Jenkins starting builds that will result in failure because there is nothing to build, the build should be stopped when those commits are coming in.