Skip to content

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

Development

Successfully merging this pull request may close these issues.

3 participants