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

Using Jenkins Job Builder to create triggers based on comment regex fails to trigger

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • core, gerrit-trigger-plugin
    • None
    • Jenkins with Gerrit Trigger plugin
      Jenkins Job Builder for job management

      When using JJB (Jenkins Job Builder) to create a Gerrit Trigger based job to trigger on a regex pattern in the comment field. The jobs will fail to trigger if created in this way.

      I know of 2 workarounds:

      1. Navigate to the job configure page and hit save
      2. Restart Jenkins process

      Notice that if workaround 1 is used the new config.xml created will be identical to the version of itself before save was clicked.

      My guess is Gerrit Trigger code must be holding something that needs to be updated before it register's the Job's regex trigger. Saving and/or reloading Jenkins causes the update.

      The JJB code for adding RegEx triggers can be found on OpenStack Gerrit at (at time of this writing it's not yet merged into JJB):

      https://review.openstack.org/#/c/136605/

      Any insight on this would be appreciated as the workarounds to move forward are not ideal.

            rsandell rsandell
            zxiiro Thanh Ha
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: