-
Notifications
You must be signed in to change notification settings - Fork 90
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
adding an option to ignore specific projects on scm poll. #31
Conversation
Thank you for this pull request! Please check this document for how the Jenkins project handles pull requests. |
@@ -312,7 +327,8 @@ public RepoScm(final String manifestRepositoryUrl, | |||
final boolean resetFirst, | |||
final boolean quiet, | |||
final boolean trace, | |||
final boolean showAllChanges) { | |||
final boolean showAllChanges, | |||
final String ignoreProjects) { |
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.
This constructor is deprecated and is only kept for backwards compat reasons, so do not add any changes to it.
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.
done
@rsandell i had commit-ammended code review comments fixes. please review |
@rsandell can you please review and merge the changes. |
this.ignoreProjects = Collections.<String>emptySet(); | ||
return; | ||
} | ||
this.ignoreProjects = new LinkedHashSet<String>(Arrays.asList(ignoreProjects.split(" "))); |
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.
Should be ignoreProjects.split("\\s+")
to split on all white space characters (so that you can have one project per line for example)
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.
done
Sorry for the delay, I've been on business trips with very little time to look at any code :) |
@rsandell i updated the pullrequest .. please review. |
adding an option to ignore specific projects on scm poll.
This adds an ability to "ignore" changes on specific project while "polling" for changes from the scm.
This is useful for example when the build process itself commits a change to specific repository, to avoid re-trigger the build.