Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-34025

build.xml is not created after successful build (with Checkstyle)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Critical Critical
    • checkstyle-plugin
    • None

      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

            drulli Ulli Hafner
            stephenharris Stephen Harris
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: