This plugin deletes all old builds that are older than buildNumber you provide. It can be run manually from the REST API.
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.
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"