Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 2.0 is incompatible and breaks groovy-postbuild plugin #189

Closed
mawinter69 opened this issue Sep 18, 2024 · 6 comments
Closed

version 2.0 is incompatible and breaks groovy-postbuild plugin #189

mawinter69 opened this issue Sep 18, 2024 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@mawinter69
Copy link

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

doesn't matter

Reproduction steps

https://github.com/jenkinsci/groovy-postbuild-plugin/blob/6eeecb7aeac5faa75313280ad67ad4c938e5bdc0/src/main/java/org/jvnet/hudson/plugins/groovypostbuild/GroovyPostbuildRecorder.java#L214 creates a new instance of BadgeSummaryAction
I don't know the exact conditions when the code is called but it results in this stacktrace

[2024-09-18T03:04:30.919Z] java.lang.NoSuchMethodError: 'void com.jenkinsci.plugins.badge.action.BadgeSummaryAction.<init>(java.lang.String)'
[2024-09-18T03:04:30.919Z] 	at PluginClassLoader for groovy-postbuild//org.jvnet.hudson.plugins.groovypostbuild.GroovyPostbuildRecorder$BadgeManager.createSummary(GroovyPostbuildRecorder.java:214)
[2024-09-18T03:04:30.919Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2024-09-18T03:04:30.919Z] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

Expected Results

badge is properly created

Actual Results

build fails

Anything else?

No response

Are you interested in contributing a fix?

No response

@mawinter69 mawinter69 added the bug Something isn't working label Sep 18, 2024
@strangelookingnerd
Copy link
Contributor

My suggestion is to upgrade the groovy-postbuild-plugin in order to be compatible (I had that on my bucket list anyway). WDYT?

@mawinter69
Copy link
Author

definitely a solution

@mawinter69
Copy link
Author

Once groovy-postbuild is adjusted I think the release notes should be updated to mention that groovy-postbuild must be updated as well

@MarkEWaite
Copy link
Contributor

A pre-release of the groovy postbuild plugin is available for testing. Use the "Jenkins Incrementals Publisher" tab to access the most recent build.

@knapsu
Copy link

knapsu commented Oct 2, 2024

Thanks @MarkEWaite. The most recent build fixes the issue.

@strangelookingnerd strangelookingnerd self-assigned this Oct 6, 2024
@strangelookingnerd
Copy link
Contributor

Fixed in release 264.vf6e02a_77d5b_c of the groovy postbuild plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants