Jenkins Upgrade: hudson.tasks.junit.JUnitParser not found in latest Jenkins 2.5 (ref by labeled-test-groups-publisher-plugin)

143 views
Skip to first unread message

roshandawrani

unread,
May 19, 2016, 7:51:58 AM5/19/16
to Jenkins Users
Hi,

I am trying to upgrade my Jenkins setup (from v1.4.x to v2.5) and running into this error "java.lang.ClassNotFoundException: hudson.tasks.junit.JUnitParser" among others.

I checked and found that this class used to be in jenkins-core-1.471.jar

However, I don't find it now in jenkins-core-2.5.jar. The whole hudson.tasks.junit" package is missing.

This class is referenced by "labeled-test-groups-publisher-plugin" and this plugin is failing to load causing Jenkins to not come up.

Can someone please help?

Thanks,
Roshan


roshan

unread,
May 19, 2016, 8:33:06 AM5/19/16
to Jenkins Users
The Jenkins release change log (v1.577) seems to say that junit stuff was taken out from the core into a separate plugin.

However, as noted here in 
https://issues.jenkins-ci.org/browse/JENKINS-23263?focusedCommentId=209734&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-209734, I can't see the "JUnit Plugin" if I go to "Manage Plugins" page. Why is that?

Very puzzling that "hudson.tasks.junit.JUnitParser" stuff was taken out of Jenkins core but there doesn't seem a good way to make it re-available for other plugins like LabeledTestGroupsPublisher that depend on it.

Daniel Beck

unread,
May 19, 2016, 2:58:21 PM5/19/16
to jenkins...@googlegroups.com

> On 19.05.2016, at 14:33, roshan <roshan...@gmail.com> wrote:
>
> However, as noted here in https://issues.jenkins-ci.org/browse/JENKINS-23263?focusedCommentId=209734&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-209734, I can't see the "JUnit Plugin" if I go to "Manage Plugins" page. Why is that?

It's not installed, or failed to load. Check the jenkins.log for failures to load plugins during startup.

> Very puzzling that "hudson.tasks.junit.JUnitParser" stuff was taken out of Jenkins core but there doesn't seem a good way to make it re-available for other plugins like LabeledTestGroupsPublisher that depend on it.

Plugins can depend on other plugins. Plugins that depend on older cores automatically get implied dependencies added to plugins that were detached from core since then.

If you manage your plugins manually by placing them in the plugins/ directory, instead of having Jenkins install them using the plugin manager/update center, this is something you just need to be aware of.

Roshan Dawrani

unread,
May 19, 2016, 9:35:44 PM5/19/16
to jenkins...@googlegroups.com
Thank you for replying, Daniel. This is how I finally did it y'day - downloaded the HPI files of the plugins that were not being shown due to their dependency on a minimum version of Jenkins and uploaded them to Jenkins /plugins directory using the "Advanced" UI of the plugin manager. After manually installing such plugins, which were factored out of the core like "JUnit" and "Matrix project", the other plugins started to load correctly.

I couldn't update to v2.5 though, due to https://issues.jenkins-ci.org/browse/JENKINS-34013, which is still open

java.lang.NoSuchMethodError: hudson.model.Messages.ExternalJob_DisplayName()Ljava/lang/String;
	at hudson.model.ExternalJob$DescriptorImpl.getDisplayName(ExternalJob.java:120)

I could update to v1650, which doesn't have the above bug and is fairly recent.

I'll test my upgrade to v1650 today. 

Thanks again for taking time to share your inputs.



--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/qMFN2ZP6i68/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/E526B418-4894-4F9E-8563-5E8C5E4BA46F%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Daniel Beck

unread,
May 20, 2016, 6:42:45 AM5/20/16
to jenkins...@googlegroups.com

> On 20.05.2016, at 03:35, Roshan Dawrani <roshan...@gmail.com> wrote:
>
> I couldn't update to v2.5 though, due to https://issues.jenkins-ci.org/browse/JENKINS-34013, which is still open
>
> java.lang.NoSuchMethodError: hudson.model.Messages.ExternalJob_DisplayName()Ljava/lang/String;
> at hudson.model.ExternalJob$DescriptorImpl.getDisplayName(ExternalJob.java:120)
>
>
> I could update to v1650, which doesn't have the above bug and is fairly recent.
>

You just need to update the External Monitor Job plugin to a more recent version, or delete it from the plugins/ directory just before upgrading.

That issue you linked to is about something slightly different and only affects instances that never had their global configuration saved by a user.

Roshan Dawrani

unread,
May 20, 2016, 7:03:34 AM5/20/16
to jenkins...@googlegroups.com
On Fri, May 20, 2016 at 4:12 PM, Daniel Beck <m...@beckweb.net> wrote:

> On 20.05.2016, at 03:35, Roshan Dawrani <roshan...@gmail.com> wrote:
>
> I couldn't update to v2.5 though, due to https://issues.jenkins-ci.org/browse/JENKINS-34013, which is still open
>
> java.lang.NoSuchMethodError: hudson.model.Messages.ExternalJob_DisplayName()Ljava/lang/String;
>       at hudson.model.ExternalJob$DescriptorImpl.getDisplayName(ExternalJob.java:120)
>
>
> I could update to v1650, which doesn't have the above bug and is fairly recent.
>

You just need to update the External Monitor Job plugin to a more recent version, or delete it from the plugins/ directory just before upgrading.

I am already on v1.4 of this plugin, which seems the latest as per https://wiki.jenkins-ci.org/display/JENKINS/Monitoring+external+jobs

I stil got the errors I mentioned when I tried upgrading to v2.5 of Jenkins.
 

That issue you linked to is about something slightly different and only affects instances that never had their global configuration saved by a user.
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/qMFN2ZP6i68/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages