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

adding an option to ignore specific projects on scm poll. #31

Merged
merged 1 commit into from
Feb 22, 2016

Conversation

solganik
Copy link

@solganik solganik commented Feb 2, 2016

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.

@jenkinsadmin
Copy link
Member

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) {
Copy link
Member

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.

Choose a reason for hiding this comment

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

done

@sasha-stratoscale
Copy link

@rsandell i had commit-ammended code review comments fixes. please review

@solganik
Copy link
Author

@rsandell can you please review and merge the changes.

this.ignoreProjects = Collections.<String>emptySet();
return;
}
this.ignoreProjects = new LinkedHashSet<String>(Arrays.asList(ignoreProjects.split(" ")));
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 ignoreProjects.split("\\s+") to split on all white space characters (so that you can have one project per line for example)

Choose a reason for hiding this comment

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

done

@rsandell
Copy link
Member

Sorry for the delay, I've been on business trips with very little time to look at any code :)

@solganik
Copy link
Author

@rsandell i updated the pullrequest .. please review.

rsandell added a commit that referenced this pull request Feb 22, 2016
adding an option to ignore specific projects on scm poll.
@rsandell rsandell merged commit 153655b into jenkinsci:master Feb 22, 2016
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.

4 participants