Fix JenkinsWhitelistTest on 2.477 incremental #578
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fix JenkinsWhitelistTest test on 2.477 incremental
The JenkinsWhitelistTest will fail because
method hudson.model.Run getFullDisplayName does not exist (or is an override)
Uses the same technique as was used in:
Run#getFullDisplayName
toHistoricalBuild#getFullDisplayName
#576Downstream of:
HistoricalBuild
interface jenkins#9674Testing done
Confirmed that the test fails when run with Jenkins incremental. Failure is also visible in plugin BOM at jenkinsci/bom#3574
A release of the plugin with this test fix is needed before the plugin BOM can adopt Jenkins 2.477. Jenkins 2.477 is scheduled for release Tuesday 17 Sep 2024 and is a possible candidate as the next LTS baseline (for 30 Oct 2024 release).
@jglick could you review, approve, and merge this fix?
Submitter checklist