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

Fix polling behaviour #38

Merged
merged 2 commits into from
Oct 31, 2016
Merged

Fix polling behaviour #38

merged 2 commits into from
Oct 31, 2016

Conversation

realdadfish
Copy link

The analysis in JENKINS-36703 was right, instead of null SCMRevisionState.NONE should have been returned and properly handled. This is done in b760e06. The other commit is unrelated, so in case upstream does not support these stylistic changes, it might just cherry-pick the first one.

Properly return SCMRevisionState.NONE and handle the cases when
we get this back from the API.
public static List<ChangeLogEntry> generateChangeLog(
final RevisionState currentState,
final RevisionState previousState, final Launcher launcher,
private static List<ChangeLogEntry> generateChangeLog(
Copy link
Member

Choose a reason for hiding this comment

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

Normally, changing the compatibility like this is a bit frowned upon since it might not be safe to upgrade if an old plugin is relying on the public method. We normally then annotate with @Restricted(NoExternalUse.class) instead, so that when a plugin bumps the dependency it will get a compilation error instead.
But in this case I doubt that any external code has been using it so it should be safe to change.

@rsandell rsandell merged commit a610ba8 into jenkinsci:master Oct 31, 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.

2 participants