Issue
I have a very slow memory leak due to pipelines being unable to cleanup their previous build data
Environment
-
CloudBees CI (CloudBees Core) on modern cloud platforms - Managed controller (CORE-MM)
-
CloudBees CI (CloudBees Core) on traditional platforms - Client controller (CORE-CM)
-
CloudBees Jenkins Enterprise - Managed controller
-
Pipeline: Groovy Plugin < 2.59
Explanation
Because of the way that the artifactory plugin works, it causes each step argument to leak in memory which ends up holding pipeline executions in memory unable to be garbage collected. The Artifactory plugin creates a pipeline inside of a pipeline and each argument is not correctly cleaned up.