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

Added option to reuse GitSCM's excluded users list #222

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

Conversation

pbalint
Copy link

@pbalint pbalint commented Nov 16, 2019

This change enables the github plugin to respect GitSCM's excluded user list (which is used when polling) for github webhooks:

image

This is a first attempt to solve the issue of having the maven release plugin increase artifact versions generate an infinite build loop when combined with git webhooks...


This change is Reviewable

@pbalint
Copy link
Author

pbalint commented Nov 21, 2019

@KostyaSha , @lanwen May I get a review, please?

}
}

if (excludedUsers != null && excludedUsers.contains(event.getTriggeredByUser())) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be ignorecase

Copy link
Author

@pbalint pbalint Dec 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears to me the SCM polling is case sensitive as well:
https://github.com/jenkinsci/git-plugin/blob/a7ad6eb38a00397c4a656b53d99bfbad8ea3b2cc/src/main/java/hudson/plugins/git/extensions/impl/UserExclusion.java#L63
So if the webhooks push trigger checks the exclusion list in a case insensitive manner, there will be a counter-intuitive difference...

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gitscm extension is for git users, github users case insensitive you do comparison in terms of GH functionality it should be ignorecase

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@pbalint
Copy link
Author

pbalint commented Dec 18, 2019 via email

Pámer Bálint and others added 2 commits June 1, 2020 19:54
@pbalint pbalint force-pushed the master branch 6 times, most recently from 91a48f2 to 64c55d5 Compare June 5, 2020 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants