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

unable to set branches with path option in gerrit trigger

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • job-dsl-plugin
    • None
    • Jenkins ver. 1.617
      Gerrit Trigger 2.14.0
      Job DSL 1.37

      I am trying to set gerrit trigger branches to be
      "path" type, with "**" value.
      Using code below i get branches of
      "plain" type, with "path:*" as value
      And that seems like bug, since online documentation provides this usage example:

          project('reg_exp:myProject', ['ant:feature-branch', 'plain:origin/refs/mybranch'])
      

      here is my code:

      triggers {
      			  gerrit {
      					events {
      						patchsetCreated()
      						draftPublished()
      					}
      					project(current_project_name,  ['path:**'])
      
      				}
      			}
      

      Attached are 2 files: actual capture, and the desired view, file names are self explanatory.

            daspilker Daniel Spilker
            vladichko Vlad Aginsky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: