-
Bug
-
Resolution: Unresolved
-
Major
-
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.
- is related to
-
JENKINS-23152 builds getting lost due to GerritTrigger
- Resolved