[JIRA] [checkstyle-plugin] (JENKINS-34025) build.xml is not created after successful build (with Checkstyle)

0 views
Skip to first unread message

contact@stephenharris.info (JIRA)

unread,
Apr 5, 2016, 8:46:02 AM4/5/16
to jenkinsc...@googlegroups.com
Stephen Harris created an issue
 
Jenkins / Bug JENKINS-34025
build.xml is not created after successful build (with Checkstyle)
Issue Type: Bug Bug
Assignee: Ulli Hafner
Components: checkstyle-plugin
Created: 2016/Apr/05 12:45 PM
Priority: Critical Critical
Reporter: Stephen Harris

With the Checkstyle plug-in in use (default settings) the plug-in seems to function normally. However, after a restart, the builds in which the Checkstyle plug-in was in use, disappear. Inspecting the builds directories, there is no build.xml created for such builds.

  • Jenkins: 1.656
  • Checkstyle Plugin: 3.45
  • Maven Integration plugin: 2.7.1 (I have also updated to 2.12.1 with no effect)

If I remove the 'Publish Checkstyle analysis results' action, then the build.xml file is created.

Jenkin's log gives the following

Apr 05, 2016 1:34:48 PM hudson.model.Run execute
INFO: E-Portfolios #33 main build action completed: SUCCESS
Apr 05, 2016 1:34:48 PM hudson.model.Executor finish1
SEVERE: Executor threw an exception
java.lang.NoClassDefFoundError: hudson/maven/MavenBuild
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)
at java.lang.Class.getDeclaredMethod(Class.java:2015)
at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.getMethod(SerializationMethodInvoker.java:165)
at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.getMethod(SerializationMethodInvoker.java:170)
at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.getMethod(SerializationMethodInvoker.java:149)
at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callWriteReplace(SerializationMethodInvoker.java:86)
at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:100)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224)
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211)
at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183)
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168)
at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
at hudson.XmlFile.write(XmlFile.java:178)
at hudson.model.Run.save(Run.java:1896)
at hudson.model.Run.execute(Run.java:1795)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: java.lang.ClassNotFoundException: hudson.maven.MavenBuild
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)
... 37 more

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

contact@stephenharris.info (JIRA)

unread,
Apr 5, 2016, 8:54:01 AM4/5/16
to jenkinsc...@googlegroups.com
Stephen Harris commented on Bug JENKINS-34025
 
Re: build.xml is not created after successful build (with Checkstyle)

Ok, this is a bit embarrassing, but this can be put on hold. The Maven Integration Plugin was not enabled. I'm having trouble enabling it, but once I've sorted out dependencies I'll give this another shot and post and update here.

contact@stephenharris.info (JIRA)

unread,
Apr 5, 2016, 9:08:01 AM4/5/16
to jenkinsc...@googlegroups.com
Stephen Harris resolved as Not A Defect
 

It was odd that Maven Integration which was disabled and that the UI would not let me toggle to enable it, because it couldn't be disabled. I had to ensure the plugin was enabled in the command line.

In any case, not a defect, I had just managed to disable a dependency without realising it.

Change By: Stephen Harris
Status: Open Resolved
Resolution: Not A Defect
Reply all
Reply to author
Forward
0 new messages