Skip to content

Fix Badge plugin method calls - #7108

Merged
smlambert merged 1 commit into
adoptium:masterfrom
steelhead31:fix_badge_plugin
May 12, 2026
Merged

Fix Badge plugin method calls#7108
smlambert merged 1 commit into
adoptium:masterfrom
steelhead31:fix_badge_plugin

Conversation

@steelhead31

Copy link
Copy Markdown
Contributor

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

@steelhead31
steelhead31 requested a review from smlambert May 12, 2026 12:55
@smlambert

smlambert commented May 12, 2026

Copy link
Copy Markdown
Contributor

@annaibm @pshipton - this update is needed as the Jenkins plugin has now deprecated removed the methods that were previously used. Once this is merged, all Jenkins servers will need to update to the new version of the badge plugin.

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).

@andrew-m-leonard andrew-m-leonard left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@smlambert
smlambert merged commit 17d99ea into adoptium:master May 12, 2026
2 checks passed
@steelhead31
steelhead31 deleted the fix_badge_plugin branch May 12, 2026 13:04
@annaibm

annaibm commented May 12, 2026

Copy link
Copy Markdown
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
Raised the PR for #7109

@andrew-m-leonard

andrew-m-leonard commented May 13, 2026 via email

Copy link
Copy Markdown
Contributor

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.

Update summary.appendText for newest Badge Jenkins plugin version

4 participants