The "Build Current Patches Only" only works, if NO parameters in the build are altered

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    The "Build Current Patches Only" feature currently identifies previous builds based on their parameters as they were present when the build was first scheduled.

    If you use a plugin that alters the parameters after the job has started, the cancelling of previous builds does not work, since the GerritTrigger#cancelJob() method does not find the job anymore.

    This is easily and trivially fixed, by not scanning for the parameters, but instead for the GerritEvent that is stored in the GerritCause used to start a build.

    A pull request has been uploaded here: https://github.com/jenkinsci/gerrit-trigger-plugin/pull/195

          Assignee:
          Unassigned
          Reporter:
          Martin Schröder
          Archiver:
          Jenkins Service Account

            Created:
            Updated:
            Resolved:
            Archived: