Issue
-
When using the "Build whenever the specified event is seen" /
eventTrigger
build trigger, duplicated builds are being scheduled. A restart fixes it, temporarily.
Environment
-
CloudBees CI (CloudBees CI) < 2.303.2.3
-
CloudBees CI (CloudBees CI) on modern cloud platforms - Managed Controller < 2.303.2.3
-
CloudBees CI (CloudBees CI) on modern cloud platforms - Operations Center < 2.303.2.3
-
CloudBees CI (CloudBees CI) on traditional platforms - Client Controller < 2.303.2.3
-
CloudBees CI (CloudBees CI) on traditional platforms - Operations Center < 2.303.2.3
Explanation
Due to a known issue BEE-7121, Pipeline Event Trigger subscriptions may be duplicated. In which case a matching incoming event would cause the schedule or duplicated builds of the same job.
The duplication happens on job reloads, that can have many source like for example updating a job config.xml
through the REST API or hitting the /reload
endpoint of a job page, but also job management and templating solution and plugins.
Every reload add one duplicated subscription.
Resolution
The issue BEE-7121 has been fixed in version 1.9 of the Pipeline Event Step plugin and is available under the CloudBees Assurance Program since the release of CloudBees CI 2.303.2.3
The recommended solution is to upgrade CloudBees CI to version 2.303.2.3 or later.