cleanupArtifactCache

Back to index

Summary

Deletes stale artifact versions from an artifact cache. A "stale artifact version" is one whose metadata was previously deleted from the CloudBees CD/RO server. If you are not logged in as "admin", you cannot use this command. However, using the force option overrides admin login privileges.

cacheDirectory
Stringrequired
The directory where stale artifact versions are stored
force
Booleanoptional
< Boolean flag— 0|1|true|false > If set to "true", this option can be used, so you can clean up the artifact cache if you are not logged in as "admin".

Usage

Perl

$cmdr->cleanupArtifactCache( "test-cacheDirectory" # cacheDirectory # optionals );

ectool

ectool cleanupArtifactCache \ "test-cacheDirectory" `# cacheDirectory` \ # optionals

Examples

Perl

$cmdr->cleanupArtifactCache("/var/artifact-cache");

ectool

ectool cleanupArtifactCache "/var/artifact-cache"