cleanupRepository

Back to index

Summary

Deletes stale artifact versions from the repository backing-store. 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.

backingStoreDirectory
Stringrequired
The repository directory where 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 repository even if the g/a/v s in the directory specified do not match up with any artifacts reported by the server. By default, this is false, and helps users avoid deleting arbitrary directory trees if they did not specify the repository backing store properly.

Usage

Perl

$cmdr->cleanupRepository( "test-backingStoreDirectory" # backingStoreDirectory # optionals );

ectool

ectool cleanupRepository \ "test-backingStoreDirectory" `# backingStoreDirectory` \ # optionals

Examples

Perl

$cmdr->cleanupRepository(<backingStoreDirectory>, {<optionals>});

ectool

ectool cleanupRepository "/var/repository-data"