Fix Badge plugin method calls - #7108
Merged
Merged
Conversation
Contributor
|
@annaibm @pshipton - this update is needed as the Jenkins plugin has now Also demonstrates the side-effect of depending on Jenkins plugins (though admittedly I like the badge view, we'll look to simplify and reduce reliance on external plugins going forward). |
smlambert
approved these changes
May 12, 2026
Contributor
|
Hi @smlambert , the Badge plugin update in PR #7108 is causing hyc pipeline failures because the groovy-postbuild plugin doesn't support the new API yet — this is Pending jenkinsci/groovy-postbuild-plugin#191 |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Fixes #7107
Following the final deprecation of 4 methods in the jenkins badge plugin see version 3.583.vdc8d4a_a_1d586 ( https://plugins.jenkins.io/badge/releases/ )
The following 4 methods have been removed and replaced ( they were deprecated in v2.0 around 18 months ago )
Deprecated Step Replacement
addHtmlBadge addBadge
addShortText addBadge
createSummary addSummary
summary#appendText summary#setText - e.g. use summary.setText(summary.getText() + ' text to append')
This PR updates the deprecated methods with their replacements