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

Gerrit Build Current Patches Only not working with triggers

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • gerrit-trigger-plugin
    • None
    • Jenkins 2.121.2
      Gerrit Trigger 2.27.5

      When Gerrit trigger is included in declarative pipeline 

      Excample:

       triggers {
              gerrit(gerritProjects: [[branches                              : [[compareType: 'PLAIN', pattern: 'master']],
                                       compareType                           : 'PLAIN',
                                       disableStrictForbiddenFileVerification: false,
                                       pattern                               : 'apps']],
                      serverName: 'gerrit.server.com')
          }
      

      Option "Build Current Patches Only" in plugin config does not take effect. 

          [JENKINS-52776] Gerrit Build Current Patches Only not working with triggers

          lukee added a comment - - edited

          Same issue for scripted pipelines.

          current_patchset_custom_trigger.log.log
          New events are scheduled, but it never gets to canceling.

          Jenkins 2.164.1
          Gerrit Trigger 2.29.0

          lukee added a comment - - edited Same issue for scripted pipelines. current_patchset_custom_trigger.log.log New events are scheduled, but it never gets to canceling. Jenkins 2.164.1 Gerrit Trigger 2.29.0

          Yevhen Null added a comment -

          I faced this issue too. Is there any chance that it will be fixed in the near future?

          Yevhen Null added a comment - I faced this issue too. Is there any chance that it will be fixed in the near future?

          Vlad Aginsky added a comment -

          I see it as well, it hits us very hard.

          Vlad Aginsky added a comment - I see it as well, it hits us very hard.

          It hits us as well ...

          Ilia Meerovich added a comment - It hits us as well ...

          ziyin lu added a comment -

          some one currently have a suitable solution? I am trying to modify the source code to recompile this plugin, but it doesn't seem to take effect..

          ziyin lu added a comment - some one currently have a suitable solution? I am trying to modify the source code to recompile this plugin, but it doesn't seem to take effect..

          Tom Skrainar added a comment - - edited

          Confirmed this bug in Scripted Pipeline as well. Simple test case of:

          properties([
            pipelineTriggers(gerrit(...))
          ])
          sleep 300
          
          

          Previous builds are not aborted on new patchset. Commenting out the properties declaration and making additional pushes, builds are aborted as expected

          Gerrit Trigger 2.32.0
          Jenkins Core 2.276

          rsandell

          Tom Skrainar added a comment - - edited Confirmed this bug in Scripted Pipeline as well. Simple test case of: properties([ pipelineTriggers(gerrit(...)) ]) sleep 300 Previous builds are not aborted on new patchset. Commenting out the properties declaration and making additional pushes, builds are aborted as expected Gerrit Trigger 2.32.0 Jenkins Core 2.276 rsandell

            rsandell rsandell
            grzzie Grzegorz Zieba
            Votes:
            11 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: