Skip to content

Latest commit

 

History

History

oldBuildCleanup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Artifactory Build Cleanup User Plugin

This plugin deletes all old builds that are older than buildNumber you provide. It can be run manually from the REST API.

Parameters

  • buildName: The name of build to delete. This parameter is mandatory.
  • buildNumber: The number of build which you want to delete with all builds older then build number provided. This parameter is mandatory.
  • cleanArtifacts: If this parameter is passed, builds will delete artifacts generated by this builds. This parameter is optional.

Executing

To execute the plugin:

For Artifactory 4.x: curl -X POST -v -u admin:password "http://localhost:8080/artifactory/api/plugins/execute/cleanOldBuilds?params=buildName=test|buildNumber=1|cleanArtifacts=true"

For Artifactory 5.x: curl -X POST -v -u admin:password "http://localhost:8080/artifactory/api/plugins/execute/cleanOldBuilds?params=buildName=test;buildNumber=1;cleanArtifacts=true"