To use this functionality in pipeline jobs, please refer to Build Retention Settings - [Jenkins Artifactory Plugin] or the Trigger Build Retention - [Scripted Pipeline Syntax] section on the Artifactory Pipeline APIs documentation page.