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 searches to retrieve an artifact version is changed.repositoryNameStringrequiredThe repository name. beforeRepositoryNameStringoptionalUsed 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
Groovy
import com.electriccloud.client.groovy.ElectricFlow import com.electriccloud.client.groovy.models.* ElectricFlow ef = new ElectricFlow() def result = ef.moveRepository( repositoryName: "test-repositoryName" /* optional arguments */ )