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

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

      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

          [JENKINS-26323] The "Build Current Patches Only" only works, if NO parameters in the build are altered

          Martin Schröder created issue -
          Martin Schröder made changes -
          URL New: https://github.com/jenkinsci/gerrit-trigger-plugin/pull/194
          Description Original: 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 will be uploaded ASAP.
          New: 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/194
          Labels New: abort gerrit gerrit-trigger
          Martin Schröder made changes -
          Description Original: 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/194
          New: 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
          Scott Hebert made changes -
          Assignee Original: jyrkiput [ jyrkiput ]
          Scott Hebert made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 160386 ] New: JNJira + In-Review [ 196412 ]

            Unassigned Unassigned
            mhschroe Martin Schröder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: