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

RunListener failed - Build Passes do not update commit statuses #133

Closed
techman83 opened this issue Jul 8, 2015 · 2 comments
Closed

RunListener failed - Build Passes do not update commit statuses #133

techman83 opened this issue Jul 8, 2015 · 2 comments

Comments

@techman83
Copy link

I've had a good poke around at the config, but whilst the plugin is able to set the status of a build/commit to in progress or failure - successes cause the following:

Jul 08, 2015 9:05:20 AM hudson.model.Run execute
INFO: NetKAN #43 main build action completed: SUCCESS
Jul 08, 2015 9:05:20 AM hudson.model.listeners.RunListener report
WARNING: RunListener failed
java.lang.NoClassDefFoundError: hudson/tasks/test/TestObject
    at org.jenkinsci.plugins.ghprb.manager.factory.GhprbBuildManagerFactoryUtil.getBuildManager(GhprbBuildManagerFactoryUtil.java:37)
    at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildComplete(GhprbSimpleStatus.java:155)
    at org.jenkinsci.plugins.ghprb.GhprbBuilds.onCompleted(GhprbBuilds.java:145)
    at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:27)
    at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:12)
    at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:201)
    at hudson.model.Run.execute(Run.java:1786)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:98)
    at hudson.model.Executor.run(Executor.java:381)
Caused by: java.lang.ClassNotFoundException: hudson.tasks.test.TestObject
    at jenkins.util.AntClassLoader.findClassInComponents(AntClassLoader.java:1376)
    at jenkins.util.AntClassLoader.findClass(AntClassLoader.java:1326)
    at jenkins.util.AntClassLoader.loadClass(AntClassLoader.java:1079)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    ... 10 more

Jenkins: 1.619
GHPRB: 124.7

The actual problem we're seeing is the commit status not updating here:
KSP-CKAN/NetKAN#1869

However it has improved from 124.6 which was not updating the build at all for a pass (at least now it gives a green tick for the overall build).

Failures do update the commit status. Is there some way I can export the job config, because I'm not 100% confident what a correctly configured job looks like (Maintainer of old Jenkins host is MIA and the host went AWAL - so we're starting from scratch).

Thanks!

@DavidTanner
Copy link
Contributor

This is an issue with JUnit. See janinko#290

@techman83
Copy link
Author

Ok that's awesome! Thanks working properly now.

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

No branches or pull requests

2 participants