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

configuring maven-checkstyle-plugin:2.17:checkstyle error cannot change build result while in COMPLETED

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • violations-plugin
    • None
    • Jenkins ver. 1.651

      Démarré par l'utilisateur Administrateur
      Building in workspace /usr/share/tomcat7/.jenkins/workspace/Commons
      Updating http://subversion.nt-solutions.fr/svn/repos-prototype/java/commons/trunk at revision '2016-03-09T11:56:12.219 +0100'
      At revision 45
      no change for http://subversion.nt-solutions.fr/svn/repos-prototype/java/commons/trunk since the previous build
      Parsing POMs
      [Commons] $ java -cp /usr/share/tomcat7/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-agent-1.5.jar:/usr/share/tomcat7/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/3.3.9/boot/plexus-classworlds-2.5.2.jar:/usr/share/tomcat7/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/3.3.9/conf/logging jenkins.maven3.agent.Maven31Main /usr/share/tomcat7/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/3.3.9 /var/lib/tomcat7/webapps/ROOT/WEB-INF/lib/remoting-2.53.3.jar /usr/share/tomcat7/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven31-interceptor-1.5.jar /usr/share/tomcat7/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.5.jar 36866
      <===[JENKINS REMOTING CAPACITY]===>channel started
      Executing Maven: -B -f /usr/share/tomcat7/.jenkins/workspace/Commons/pom.xml install checkstyle:checkstyle
      [INFO] Scanning for projects...
      [WARNING]
      [WARNING] Some problems were encountered while building the effective model for com.atn:commons:jar:2.0
      [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: javax.mail:mail:jar -> duplicate declaration of version ${javax.mail.version} @ line 179, column 15
      [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 80, column 12
      [WARNING]
      [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
      [WARNING]
      [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
      [WARNING]
      [INFO] Downloading: http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml
      [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-source-plugin/maven-metadata.xml from/to thirdparty (http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty): Failed to transfer file: http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty/org/apache/maven/plugins/maven-source-plugin/maven-metadata.xml. Return code is: 503 , ReasonPhrase:Service Unavailable.
      [INFO] Downloading: http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty/org/apache/maven/plugins/maven-metadata.xml
      [INFO] Downloading: http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty/org/codehaus/mojo/maven-metadata.xml
      [WARNING] Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to thirdparty (http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty): Failed to transfer file: http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty/org/apache/maven/plugins/maven-metadata.xml. Return code is: 503 , ReasonPhrase:Service Unavailable.
      [WARNING] Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to thirdparty (http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty): Failed to transfer file: http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty/org/codehaus/mojo/maven-metadata.xml. Return code is: 503 , ReasonPhrase:Service Unavailable.
      [INFO] Downloading: http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty/org/apache/maven/plugins/maven-checkstyle-plugin/maven-metadata.xml
      [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-checkstyle-plugin/maven-metadata.xml from/to thirdparty (http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty): Failed to transfer file: http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty/org/apache/maven/plugins/maven-checkstyle-plugin/maven-metadata.xml. Return code is: 503 , ReasonPhrase:Service Unavailable.
      [INFO]
      [INFO] ------------------------------------------------------------------------
      [INFO] Building commons 2.0
      [INFO] ------------------------------------------------------------------------
      [WARNING] Failure to transfer org.apache.maven.plugins/maven-metadata.xml from http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty was cached in the local repository, resolution will not be reattempted until the update interval of thirdparty has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins/maven-metadata.xml from/to thirdparty (http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty): Failed to transfer file: http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty/org/apache/maven/plugins/maven-metadata.xml. Return code is: 503 , ReasonPhrase:Service Unavailable.
      [WARNING] Failure to transfer org.codehaus.mojo/maven-metadata.xml from http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty was cached in the local repository, resolution will not be reattempted until the update interval of thirdparty has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo/maven-metadata.xml from/to thirdparty (http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty): Failed to transfer file: http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty/org/codehaus/mojo/maven-metadata.xml. Return code is: 503 , ReasonPhrase:Service Unavailable.
      [WARNING] Failure to transfer org.apache.maven.plugins:maven-checkstyle-plugin/maven-metadata.xml from http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty was cached in the local repository, resolution will not be reattempted until the update interval of thirdparty has elapsed or updates are forced. Original error: Could not transfer metadata org.apache.maven.plugins:maven-checkstyle-plugin/maven-metadata.xml from/to thirdparty (http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty): Failed to transfer file: http://mvnrepo.nt-solutions.fr/content/repositories/thirdparty/org/apache/maven/plugins/maven-checkstyle-plugin/maven-metadata.xml. Return code is: 503 , ReasonPhrase:Service Unavailable.
      [INFO]
      [INFO] — maven-resources-plugin:2.6:resources (default-resources) @ commons —
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 4 resources
      [INFO]
      [INFO] — maven-compiler-plugin:3.1:compile (default-compile) @ commons —
      [INFO] Nothing to compile - all classes are up to date
      [INFO]
      [INFO] — maven-resources-plugin:2.6:testResources (default-testResources) @ commons —
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 0 resource
      [INFO]
      [INFO] — maven-compiler-plugin:3.1:testCompile (default-testCompile) @ commons —
      [INFO] Nothing to compile - all classes are up to date
      [INFO]
      [INFO] — maven-surefire-plugin:2.12.4:test (default-test) @ commons —
      [JENKINS] Enregistrement des résultats des tests
      [INFO]
      [INFO] — maven-jar-plugin:2.4:jar (default-jar) @ commons —
      [INFO]
      [INFO] >>> maven-source-plugin:3.0.0:jar (default) > generate-sources @ commons >>>
      [WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo
      [INFO]
      [INFO] <<< maven-source-plugin:3.0.0:jar (default) < generate-sources @ commons <<<
      [INFO]
      [INFO] — maven-source-plugin:3.0.0:jar (default) @ commons —
      [INFO]
      [INFO] >>> maven-source-plugin:3.0.0:test-jar (default) > generate-sources @ commons >>>
      [WARNING] Failed to getClass for org.apache.maven.plugins.source.TestSourceJarMojo
      [INFO]
      [INFO] <<< maven-source-plugin:3.0.0:test-jar (default) < generate-sources @ commons <<<
      [INFO]
      [INFO] — maven-source-plugin:3.0.0:test-jar (default) @ commons —
      [INFO]
      [INFO] — maven-install-plugin:2.4:install (default-install) @ commons —
      [INFO] Installing /usr/share/tomcat7/.jenkins/workspace/Commons/target/commons-2.0.jar to /usr/share/tomcat7/.m2/repository/com/atn/commons/2.0/commons-2.0.jar
      [INFO] Installing /usr/share/tomcat7/.jenkins/workspace/Commons/pom.xml to /usr/share/tomcat7/.m2/repository/com/atn/commons/2.0/commons-2.0.pom
      [INFO] Installing /usr/share/tomcat7/.jenkins/workspace/Commons/target/commons-2.0-sources.jar to /usr/share/tomcat7/.m2/repository/com/atn/commons/2.0/commons-2.0-sources.jar
      [INFO] Installing /usr/share/tomcat7/.jenkins/workspace/Commons/target/commons-2.0-test-sources.jar to /usr/share/tomcat7/.m2/repository/com/atn/commons/2.0/commons-2.0-test-sources.jar
      [INFO]
      [INFO] — maven-checkstyle-plugin:2.17:checkstyle (default-cli) @ commons —
      [INFO] There are 2478 errors reported by Checkstyle 6.11.2 with sun_checks.xml ruleset.
      [WARNING] Unable to locate Source XRef to link to - DISABLED
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 30.623 s
      [INFO] Finished at: 2016-03-09T11:57:05+01:00
      [INFO] Final Memory: 29M/71M
      [INFO] ------------------------------------------------------------------------
      En attente que Jenkins finisse de récupérer les données
      [JENKINS] Archiving /usr/share/tomcat7/.jenkins/workspace/Commons/pom.xml to com.atn/commons/2.0/commons-2.0.pom
      [JENKINS] Archiving /usr/share/tomcat7/.jenkins/workspace/Commons/target/commons-2.0.jar to com.atn/commons/2.0/commons-2.0.jar
      [JENKINS] Archiving /usr/share/tomcat7/.jenkins/workspace/Commons/target/commons-2.0-sources.jar to com.atn/commons/2.0/commons-2.0-sources.jar
      [JENKINS] Archiving /usr/share/tomcat7/.jenkins/workspace/Commons/target/commons-2.0-test-sources.jar to com.atn/commons/2.0/commons-2.0-test-sources.jar
      ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
      java.lang.IllegalStateException: cannot change build result while in COMPLETED
      at hudson.model.Run.setResult(Run.java:456)
      at hudson.plugins.violations.ViolationsReport.setBuildResult(ViolationsReport.java:542)
      at hudson.plugins.violations.hudson.maven.ViolationsMavenReporter.end(ViolationsMavenReporter.java:100)
      at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:104)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:846)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      project=hudson.maven.MavenModuleSet@16796fc1[Commons]
      project.getModules()=[hudson.maven.MavenModule@a873987[Commons/com.atn:commons][Commons/com.atn:commons][relativePath:]]
      project.getRootModule()=hudson.maven.MavenModule@a873987[Commons/com.atn:commons][Commons/com.atn:commons][relativePath:]
      FATAL: cannot change build result while in COMPLETED
      java.lang.IllegalStateException: cannot change build result while in COMPLETED
      at hudson.model.Run.setResult(Run.java:456)
      at hudson.plugins.violations.ViolationsReport.setBuildResult(ViolationsReport.java:542)
      at hudson.plugins.violations.hudson.maven.ViolationsMavenReporter.end(ViolationsMavenReporter.java:100)
      at hudson.maven.AbstractMavenBuilder.end(AbstractMavenBuilder.java:104)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:846)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
      Finished: FAILURE

            peterkittreilly peterkittreilly
            walidmansia walid mansia
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: