moveRepository

Back to index

Summary

Moves an artifact repository in front of another, specified repository or to the end of the list. This API does not move artifact version data to another repository server machine. Only the repository order in which CloudBees CD/RO searches to retrieve an artifact version is changed.
repositoryName
Stringrequired
The repository name.
beforeRepositoryName
Stringoptional
Used when reordering the artifact repositories: the repository is moved to a position just before this repository. Blank means move the repository to the end of the artifact repository list.

Usage

Perl

$cmdr->moveRepository( "test-repositoryName" # repositoryName # optionals );

ectool

ectool moveRepository \ "test-repositoryName" `# repositoryName` \ # optionals

Examples

Perl

$cmdr->moveRepository("reposThree", {beforeRepositoryName => "reposOne"});

ectool

ectool moveRepository "reposThree" --beforeRepositoryName "reposOne"