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

parameterizedtrigger and git-plugin have an unsatisfied dependency on promoted_builds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • Jenkins ver. 2.164.1
      Git client plugin 3.0.0-rc
      Git plugin 4.0.0-rc
      Parameterized Remote Trigger Plugin 3.0.7

      fixed by adding: promoted builds plugin 3.2

      If "Parameterized Remote Trigger Plugin 3.0.7" is installed, and "promoted builds plugin" is not installed

      then Parameterized Jobs encounter this error, captured from errors.txt:

      java.lang.NoClassDefFoundError: hudson/plugins/promoted_builds/Promotion
      {{ at hudson.plugins.git.GitRevisionBuildParameters.getAction(GitRevisionBuildParameters.java:60)}}
      {{ at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getBaseActions(BuildTriggerConfig.java:356)}}
      {{ at hudson.plugins.parameterizedtrigger.BuildTriggerConfig.getBaseActions(BuildTriggerConfig.java:348)}}
      {{ at hudson.plugins.parameterizedtrigger.ParameterizedDependency.shouldTriggerBuild(ParameterizedDependency.java:62)}}
      {{ at hudson.tasks.BuildTrigger.execute(BuildTrigger.java:271)}}
      {{ at hudson.model.AbstractBuild$AbstractBuildExecution.cleanUp(AbstractBuild.java:651)}}
      {{ at hudson.model.Build$BuildExecution.cleanUp(Build.java:201)}}
      {{ at hudson.model.Run.execute(Run.java:1863)}}
      {{ at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)}}
      {{ at hudson.model.ResourceController.execute(ResourceController.java:97)}}
      {{ at hudson.model.Executor.run(Executor.java:429)}}

      With the result that some actions the job is to take may not occur.
      Notably, the "Discard Old Builds" action does not happen.

      Looking in the code, I see here:
      https://github.com/jenkinsci/git-plugin/blob/master/src/main/java/hudson/plugins/git/GitRevisionBuildParameters.java#L60
      that a check in "hudson.plugins.git" requires a class declaration from "hudson.plugins.parameterizedtrigger".

      But the install of "Parameterized Trigger Plugin" does not automatically install then "promoted builds plugin".

      ...

      When I manually install the "promoted builds plugin", the problem goes away.

            Unassigned Unassigned
            genethebuildengineer Gene Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: