Skip to content

Conversation

@MarkEWaite
Copy link
Contributor

@MarkEWaite MarkEWaite commented Aug 15, 2021

JENKINS-66296 - Avoid unexpected polling rebuild after upgrade

The removal of the package protected method getJenkinsManageOrAdmin seems to have caused JENKINS-66296, an unmarshalling error in the upgrade from git plugin 4.7.2 to git plugin 4.8.0.

Restoring the package protected method seems to avoid the unmarshalling and thus avoids a problem elsewhere in the code. It is unclear to me where that problem exists or how to permanently avoid it. This change resolves the specific case described by the original submitter of the bug report and seems very low risk.

Checklist

  • I have read the CONTRIBUTING doc
  • I have referenced the Jira issue related to my changes in one or more commit messages
  • I have added tests that verify my changes
  • Unit tests pass locally with my changes
  • I have added documentation as necessary
  • No Javadoc warnings were introduced with my changes
  • No spotbugs warnings were introduced with my changes
  • Documentation in README has been updated as necessary
  • Online help has been added and reviewed for any new or modified fields
  • I have interactively tested my changes
  • Any dependent changes have been merged and published in upstream modules (like git-client-plugin)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

The removal of the package protected method getJenkinsManageOrAdmin seems
to have caused JENKINS-66296, an unmarshalling error in the upgrade from
git plugin 4.7.2 to git plugin 4.8.0.

Restoring the package protected method seems to avoid the unmarshalling
and thus avoids a problem elsewhere in the code.
@MarkEWaite MarkEWaite merged commit a6fb34d into jenkinsci:master Aug 15, 2021
@MarkEWaite MarkEWaite deleted the explore-signature-change branch August 15, 2021 11:15
@MarkEWaite MarkEWaite added the bugfix Fixes a bug - used by Release Drafter label Aug 15, 2021
@MarkEWaite MarkEWaite changed the title [JENKINS-66296] Restore a package protected method [JENKINS-66296] Avoid unexpected polling rebuild after upgrade Aug 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Fixes a bug - used by Release Drafter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant