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

Publisher hudson.plugins.cigame.GamePublisher aborted due to exception NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ci-game-plugin
    • Labels:
      None
    • Environment:
      Fedora 20 64 bit
      Jenkins 1.577
      Oracle JDK 1.7.0_45
    • Similar Issues:

      Description

      the ci-game plugin is throwing the following exception:

      Recording test results
      [ci-game] evaluating rule: Build result
      [ci-game] scored: 1.0
      [ci-game] evaluating rule: Increased number of passed tests
      ERROR: Publisher hudson.plugins.cigame.GamePublisher aborted due to exception
      java.lang.NoSuchMethodError: hudson.model.AbstractBuild.getTestResultAction()Lhudson/tasks/test/AbstractTestResultAction;
      	at hudson.plugins.cigame.rules.unittesting.AbstractUnitTestsRule.getPreviousBuildWithResults(AbstractUnitTestsRule.java:49)
      	at hudson.plugins.cigame.rules.unittesting.AbstractUnitTestsRule.evaluate(AbstractUnitTestsRule.java:70)
      	at hudson.plugins.cigame.model.ScoreCard.evaluate(ScoreCard.java:102)
      	at hudson.plugins.cigame.model.ScoreCard.record(ScoreCard.java:45)
      	at hudson.plugins.cigame.model.ScoreCard.record(ScoreCard.java:122)
      	at hudson.plugins.cigame.GamePublisher.perform(GamePublisher.java:60)
      	at hudson.plugins.cigame.GamePublisher.perform(GamePublisher.java:45)
      	at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:45)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:770)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:734)
      	at hudson.model.Build$BuildExecution.cleanUp(Build.java:192)
      	at hudson.model.Run.execute(Run.java:1786)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:89)
      	at hudson.model.Executor.run(Executor.java:240)
      

      if required I can dig into the historical logs to determine which version of Jenkins started to generate the above exception.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Simon Schlachter
            Path:
            pom.xml
            src/test/java/hudson/plugins/cigame/GamePublisherTest.java
            http://jenkins-ci.org/commit/ci-game-plugin/c773f247881b4d59c67f2ef2d8e5dd49d7853774
            Log:
            JENKINS-24478: fix failing due to new jenkins-core dependencies

            Compare: https://github.com/jenkinsci/ci-game-plugin/compare/cd6c3b9dfcf4...c773f247881b

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Simon Schlachter Path: pom.xml src/test/java/hudson/plugins/cigame/GamePublisherTest.java http://jenkins-ci.org/commit/ci-game-plugin/c773f247881b4d59c67f2ef2d8e5dd49d7853774 Log: JENKINS-24478 : fix failing due to new jenkins-core dependencies Compare: https://github.com/jenkinsci/ci-game-plugin/compare/cd6c3b9dfcf4...c773f247881b
            Hide
            cappuccino Simon Gamma added a comment -

            Hey Guys, I had to bump some of the version numbers on our dependencies in order to be able to fully use the changed API. Now everything looks good.

            I'll release a new version as soon as the jenkins-infra-guys are able to get the release-mechanism working again.

            See INFRA-240 for that, if you are interested.

            Show
            cappuccino Simon Gamma added a comment - Hey Guys, I had to bump some of the version numbers on our dependencies in order to be able to fully use the changed API. Now everything looks good. I'll release a new version as soon as the jenkins-infra-guys are able to get the release-mechanism working again. See INFRA-240 for that, if you are interested.
            Hide
            drphrozen Esben Rasmussen added a comment -

            Excellent work

            Show
            drphrozen Esben Rasmussen added a comment - Excellent work
            Hide
            cappuccino Simon Gamma added a comment -

            OK, changes are included in version 1.21 - can you please verify?

            Show
            cappuccino Simon Gamma added a comment - OK, changes are included in version 1.21 - can you please verify?
            Hide
            jsotuyod Juan Sotuyo added a comment -

            Working for me

            Show
            jsotuyod Juan Sotuyo added a comment - Working for me

              People

              • Assignee:
                cappuccino Simon Gamma
                Reporter:
                abarbieri Andrea Barbieri
              • Votes:
                21 Vote for this issue
                Watchers:
                31 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: