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

NoSuchMethodError occurs when promoting a build using parametrized trigger

    XMLWordPrintable

Details

    • Promoted Builds 3.5

    Description

      When updating the promoted builds to Version 3.4 an NoSuchMethodError occoures when using a parametrized job for the promotion.

      build hudson.plugins.copyartifact.CopyArtifact@7de7a398 SUCCESS
      [EnvInject] - Injecting environment variables from a build step.
      [EnvInject] - Injecting as environment variables the properties file path '...version.properties'
      [EnvInject] - Variables injected successfully.
      build org.jenkinsci.plugins.envinject.EnvInjectBuilder@fb74c58 SUCCESS
      FATAL: hudson.plugins.promoted_builds.Promotion.getTarget()Lhudson/model/AbstractBuild;
      java.lang.NoSuchMethodError: hudson.plugins.promoted_builds.Promotion.getTarget()Lhudson/model/AbstractBuild;
      	at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.createUpstreamCause(BuildTriggerConfig.java:530)
      	at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.schedule(BuildTriggerConfig.java:550)
      	at hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.schedule(BlockableBuildTriggerConfig.java:82)
      	at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.perform3(BuildTriggerConfig.java:463)
      	at hudson.plugins.parameterizedtrigger.BlockableBuildTriggerConfig.perform3(BlockableBuildTriggerConfig.java:67)
      	at hudson.plugins.parameterizedtrigger.TriggerBuilder.perform(TriggerBuilder.java:93)
      	at hudson.plugins.promoted_builds.Promotion$RunnerImpl.build(Promotion.java:449)
      	at hudson.plugins.promoted_builds.Promotion$RunnerImpl.doRun(Promotion.java:386)
      	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
      	at hudson.model.Run.execute(Run.java:1815)
      	at hudson.model.Run.run(Run.java:1769)
      	at hudson.plugins.promoted_builds.Promotion.run(Promotion.java:298)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      Finished: FAILURE
      

      With the changes of JENKINS-59600 the method getTarget() was renamed to getTargetBuild() but this change was not made in the calling method.

      Attachments

        Issue Links

          Activity

            Any news on this? We still cannot access promotion logs.

            dhs Dirk Heinrichs added a comment - Any news on this? We still cannot access promotion logs.
            oleg_nenashev Oleg Nenashev added a comment -

            It should be fixed in 3.5: https://github.com/jenkinsci/promoted-builds-plugin/releases/tag/promoted-builds-3.5 . I tested it manually and it looks to work fine, but more feedback would be appreciated

            oleg_nenashev Oleg Nenashev added a comment - It should be fixed in 3.5:  https://github.com/jenkinsci/promoted-builds-plugin/releases/tag/promoted-builds-3.5  . I tested it manually and it looks to work fine, but more feedback would be appreciated
            rompic Roman Pickl added a comment -

            not the original reporter, but thanks this worked for us.

            rompic Roman Pickl added a comment - not the original reporter, but thanks this worked for us.

            Installed the update last week, and it works fine!

            patrick_weegen Patrick Weegen added a comment - Installed the update last week, and it works fine!
            oleg_nenashev Oleg Nenashev added a comment -

            Thanks for the feedback!

            I have started prototyping JENKINS-36089 (Pipeline Support), so there should be new versions soon (likely in the experimental update center).

             

            oleg_nenashev Oleg Nenashev added a comment - Thanks for the feedback! I have started prototyping  JENKINS-36089 (Pipeline Support), so there should be new versions soon (likely in the experimental update center).  

            People

              oleg_nenashev Oleg Nenashev
              patrick_weegen Patrick Weegen
              Votes:
              21 Vote for this issue
              Watchers:
              27 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: