Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
Description
I had previously configured a trigger in a Jenkins job to use the dynamic trigger configuration. I then unchecked the checkbox, but I still see this job triggering on gerrit repos that are in the referenced dynamic trigger file. It appears that even though in the XML I see the following:
<dynamicTriggerConfiguration>false</dynamicTriggerConfiguration>
It is still referencing the triggers that are configured in the file in the URL.
If I recheck the dynamic trigger box, I can clear out the URL, then uncheck the box again. But then I see the following error on the main job page:
Problem with Gerrit dynamic trigger configuration:MalformedURLException when fetching dynamic trigger url: The gerritTriggerConfigUrl is empty
This is very easy to reproduce.
Code changed in jenkins
User: Robert Sandell
Path:
src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritTrigger.java
src/main/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritTriggerTimerTask.java
http://jenkins-ci.org/commit/gerrit-trigger-plugin/afab9e9c99f49c457776ae64f15a36fa54017113
Log:
Merge pull request #336 from Jimilian/JENKINS_48155
JENKINS-48155: gerrit-trigger-plugin does not repsect dynamicTriggerConfiguration flag
Compare: https://github.com/jenkinsci/gerrit-trigger-plugin/compare/fde68b35f54f...afab9e9c99f4