public class JkNexusRepos
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
JkNexusRepos.JkStagingRepo |
Modifier and Type | Method and Description |
---|---|
void |
close(java.util.List<java.lang.String> repositoryIds) |
void |
closeAndRelease(java.lang.String... profileNames)
Closes repositories in OPEN Status, waits for all repos are closed then releases all repositories.
|
void |
closeAndReleaseOpenRepositories(java.lang.String... profileNames)
Closes then releases staging repositories in OPEN status.
|
java.util.List<JkNexusRepos.JkStagingRepo> |
findStagingRepositories() |
static JkNexusRepos |
ofUrlAndCredentials(JkRepo repo)
Creates a
JkNexusRepos from information contained in the specified repo, meaning baseUrl and credentials. |
void |
release(java.util.List<java.lang.String> repositoryIds) |
void |
waitForClosing(java.lang.String repositoryId) |
public static JkNexusRepos ofUrlAndCredentials(JkRepo repo)
JkNexusRepos
from information contained in the specified repo, meaning baseUrl and credentials.public void closeAndReleaseOpenRepositories(java.lang.String... profileNames)
profileNames
- a filter to take in account only repositories having specified profile names. If empty, no filter applies.public void closeAndRelease(java.lang.String... profileNames)
profileNames
- a filter to take in account only repositories having specified profile names. If empty, no filter applies.public java.util.List<JkNexusRepos.JkStagingRepo> findStagingRepositories()
public void close(java.util.List<java.lang.String> repositoryIds)
public void waitForClosing(java.lang.String repositoryId)
public void release(java.util.List<java.lang.String> repositoryIds)