|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Repository
Basic contract for interfacing with various version control repository systems.
| Field Summary | |
|---|---|
static String |
REPOSIORTY_TYPE
|
static String |
UNKNOWN_HOST
|
| Method Summary | |
|---|---|
void |
addDefaultValues(BuildConfiguration buildConfiguration)
|
void |
getAllSourceCode(Build build)
Forces the repository to refresh all the source code in the repository |
Collection |
getChangesSinceLastBuild(Build build,
Date lastBuild)
Obtain the number of changes that have been made to the build since the build was last executed. |
String |
getHost()
What's the repostory server host |
String |
getKey()
|
String |
getLabel()
|
String |
getName()
|
File |
getSourceCodeDirectory(Build build)
Where has the source code been checked out? |
String |
getTriggerIpAddress()
What's the repository's optional trigger IP address? |
String |
getWebRepositoryUrl()
What's the repository's web url |
String |
getWebRepositoryUrlForFile(CommitFile file)
What's the URL to the repostory for the modified file? |
String |
getWebRepositoryUrlRepoName()
What's the repository's web url repository |
boolean |
hasWebBasedRepositoryAccess()
Does this recpository provdide a web url intereface? |
boolean |
isProcessingRepositoryRequest()
Is the repository currently processing a request with the repository server |
boolean |
isRepositoryDifferent(Repository repository)
Checks if the current repo is the same or not and sets the referencesDifferentRepository flag accordingly |
boolean |
referencesDifferentRepository()
Has the repository's configuration been updated so that it now references a completely different build? |
void |
setProcessingRepositoryRequest(boolean processingRepositoryRequest)
Change the busy status |
void |
setReferencesDifferentRepository(boolean isDifferentRepository)
Record that the repository configutation |
void |
setTriggerIpAddress(String triggerIpAddress)
Bamboo checks to ensure a repository triggered build request comes from a valid host. |
void |
setWebRepositoryUrl(String url)
Where should we link to to show build file changes? |
void |
setWebRepositoryUrlRepoName(String repoName)
This is used to identify the repository on multi-repository configurations. |
void |
setWorkingDir(File workingDir)
Where should the repository place repository specific working files. |
ErrorCollection |
validate()
Validate the Repository's property settings when supplied from an web form |
ErrorCollection |
validate(BuildConfiguration buildConfiguration)
|
| Methods inherited from interface com.atlassian.bamboo.fieldvalue.ConvertibleFromConfig |
|---|
populateFromConfig, toConfiguration |
| Field Detail |
|---|
static final String UNKNOWN_HOST
static final String REPOSIORTY_TYPE
| Method Detail |
|---|
String getKey()
String getName()
Collection getChangesSinceLastBuild(Build build,
Date lastBuild)
throws RepositoryException
build - The build we are checkinglastBuild - The date and time of the previous build
ChangeLogEntry objects
RepositoryException - Something went wrong
void getAllSourceCode(Build build)
throws RepositoryException
build -
RepositoryException - Something went wrongvoid setWorkingDir(File workingDir)
workingDir - the directory
File getSourceCodeDirectory(Build build)
throws RepositoryException
build - The build who's source code we're checking
RepositoryException - A generic failureErrorCollection validate()
ErrorCollection validate(BuildConfiguration buildConfiguration)
void addDefaultValues(BuildConfiguration buildConfiguration)
boolean hasWebBasedRepositoryAccess()
void setWebRepositoryUrl(String url)
url - The url of the repositories web interfacevoid setWebRepositoryUrlRepoName(String repoName)
repoName - The name of the repository we are viewingString getWebRepositoryUrl()
String getWebRepositoryUrlRepoName()
String getWebRepositoryUrlForFile(CommitFile file)
file - The file that has been modified
void setTriggerIpAddress(String triggerIpAddress)
triggerIpAddress - The actual IP address of the repository serverString getTriggerIpAddress()
boolean isProcessingRepositoryRequest()
void setProcessingRepositoryRequest(boolean processingRepositoryRequest)
processingRepositoryRequest - True starting processing, false if it has finishedString getHost()
boolean referencesDifferentRepository()
void setReferencesDifferentRepository(boolean isDifferentRepository)
isDifferentRepository - true iff the repository now references a different repostoryboolean isRepositoryDifferent(Repository repository)
repository - String getLabel()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||