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

Gradle build fails with Could not initialize class hudson.plugins.gradle.Messages

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Blocker Blocker
    • gradle-plugin

      When using a gradle build step the job fails after running the gradle build, as follows:

      :clean
      :compileJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
      1 warning
      
      :processResources UP-TO-DATE
      :classes
      :war
      :assemble
      :compileTestJavawarning: [options] bootstrap class path not set in conjunction with -source 1.7
      1 warning
      :processTestResources
      :testClasses
      :test
      :check
      :build
      
      BUILD SUCCESSFUL
      
      Total time: 47.208 secs
      FATAL: Could not initialize class hudson.plugins.gradle.Messages
      java.lang.NoClassDefFoundError: Could not initialize class hudson.plugins.gradle.Messages
      	at hudson.plugins.gradle.Gradle$DescriptorImpl.getDisplayName(Gradle.java:388)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.getBuildStepName(AbstractBuild.java:818)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:796)
      	at hudson.model.Build$BuildExecution.build(Build.java:205)
      	at hudson.model.Build$BuildExecution.doRun(Build.java:162)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      	at hudson.model.Run.execute(Run.java:1720)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:98)
      	at hudson.model.Executor.run(Executor.java:404)
      Archiving artifacts
      Recording test results
      Notifying upstream projects of job completion
      Finished: FAILURE
      

            wolfs Stefan Wolf
            srh_sloan Sarah Sloan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: