gerrit-trigger-plugin option "Build Current Patches Only" not work in script pipeline

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

XMLWordPrintable

      my script pipeline trigger config is: 

           pipelineTriggers([
               gerrit(customUrl: '', gerritProjects: [[branches: [[compareType: env.GERRIT_BRANCHES_COMPARE_TYPE, pattern: env.GERRIT_BRANCHES_PATTERN]], compareType: 'PLAIN', pattern: env.GERRIT_PROJECT_PATTERN]], triggerOnEvents: [commentAddedContains(env.GERRIT_TRIGGER_COMMENT)])
           ])
      

      gerrit comment can trigger jenkins job, but if you set a new patch and comment again, the old build don't abort when option "Build Current Patches Only" is checked , how can i effect "Build Current Patches Only" in jenkins script pipeline?

      thanks for help !

            Assignee:
            rsandell
            Reporter:
            ziyin lu
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: