Skip to content

Fix polling behaviour#38

Merged
rsandell merged 2 commits intojenkinsci:masterfrom
realdadfish:master
Oct 31, 2016
Merged

Fix polling behaviour#38
rsandell merged 2 commits intojenkinsci:masterfrom
realdadfish:master

Conversation

@realdadfish
Copy link
Copy Markdown

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
Copy Markdown
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