Artifactory plugin leaks step arguments

Article ID:360038165552
1 minute readKnowledge base

Issue

I have a very slow memory leak due to pipelines being unable to cleanup their previous build data

Jenkins issues

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.

Resolution

With the fix to JENKINS-54032 step arguments are now no longer stored so the fix is to install the Pipeline: Groovy plugin version 2.59 which will fix the leak from happening in the Artifactory plugin