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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • gerrit-trigger-plugin
    • None
    • Gerrit Trigger 2.30.0

      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 !

            rsandell rsandell
            gxglls ziyin lu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: