public class GitProctorCore extends Object implements FileBasedPersisterCore
| Modifier and Type | Class and Description |
|---|---|
class |
GitProctorCore.GitGcTask |
| Constructor and Description |
|---|
GitProctorCore(String gitUrl,
String username,
String password,
String testDefinitionsDirectory,
File tempDir) |
GitProctorCore(String gitUrl,
String username,
String password,
String testDefinitionsDirectory,
File tempDir,
String branchName) |
GitProctorCore(String gitUrl,
String username,
String password,
String testDefinitionsDirectory,
GitWorkspaceProvider workspaceProvider) |
GitProctorCore(String gitUrl,
String username,
String password,
String testDefinitionsDirectory,
GitWorkspaceProvider workspaceProvider,
int pullPushTimeoutSeconds,
int cloneTimeoutSeconds) |
GitProctorCore(String gitUrl,
String username,
String password,
String testDefinitionsDirectory,
GitWorkspaceProvider workspaceProvider,
int pullPushTimeoutSeconds,
int cloneTimeoutSeconds,
boolean cleanInitialization) |
GitProctorCore(String gitUrl,
String username,
String password,
String testDefinitionsDirectory,
GitWorkspaceProvider workspaceProvider,
int pullPushTimeoutSeconds,
int cloneTimeoutSeconds,
boolean cleanInitialization,
String branchName) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkoutBranch(String branchName) |
boolean |
cleanWorkingDirectory() |
void |
close() |
GitDirectoryRefresher |
createRefresherTask()
Creates a background task that can be scheduled to refresh a template directory used to
seed each user workspace during a commit.
|
GitDirectoryRefresher |
createRefresherTask(String username,
String password)
Deprecated.
We don't need to specify username/password.
Replaced by
createRefresherTask() |
TestVersionResult |
determineVersions(String fetchRevision) |
void |
doInWorkingDirectory(String username,
String password,
String comment,
String previousVersion,
FileBasedProctorStore.ProctorUpdater updater) |
void |
doInWorkingDirectory(String username,
String password,
String author,
String comment,
String previousVersion,
FileBasedProctorStore.ProctorUpdater updater) |
String |
getAddTestRevision() |
<C> C |
getFileContents(Class<C> c,
String[] path,
C defaultValue,
String revision) |
void |
refresh() |
public GitProctorCore(String gitUrl, String username, String password, String testDefinitionsDirectory, File tempDir)
public GitProctorCore(String gitUrl, String username, String password, String testDefinitionsDirectory, File tempDir, String branchName)
public GitProctorCore(String gitUrl, String username, String password, String testDefinitionsDirectory, GitWorkspaceProvider workspaceProvider)
gitUrl - username - password - testDefinitionsDirectory - workspaceProvider - public GitProctorCore(String gitUrl, String username, String password, String testDefinitionsDirectory, GitWorkspaceProvider workspaceProvider, int pullPushTimeoutSeconds, int cloneTimeoutSeconds)
public GitProctorCore(String gitUrl, String username, String password, String testDefinitionsDirectory, GitWorkspaceProvider workspaceProvider, int pullPushTimeoutSeconds, int cloneTimeoutSeconds, boolean cleanInitialization)
public <C> C getFileContents(Class<C> c, String[] path, C defaultValue, String revision) throws StoreException.ReadException, com.fasterxml.jackson.core.JsonProcessingException
getFileContents in interface FileBasedPersisterCoreStoreException.ReadExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionpublic boolean cleanWorkingDirectory()
@Deprecated public GitDirectoryRefresher createRefresherTask(String username, String password)
createRefresherTask()public GitDirectoryRefresher createRefresherTask()
public void doInWorkingDirectory(String username, String password, String author, String comment, String previousVersion, FileBasedProctorStore.ProctorUpdater updater) throws StoreException.TestUpdateException
doInWorkingDirectory in interface FileBasedPersisterCoreStoreException.TestUpdateExceptionpublic void doInWorkingDirectory(String username, String password, String comment, String previousVersion, FileBasedProctorStore.ProctorUpdater updater) throws StoreException.TestUpdateException
doInWorkingDirectory in interface FileBasedPersisterCoreStoreException.TestUpdateExceptionpublic TestVersionResult determineVersions(String fetchRevision) throws StoreException.ReadException
determineVersions in interface FileBasedPersisterCoreStoreException.ReadExceptionpublic void checkoutBranch(String branchName)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getAddTestRevision()
getAddTestRevision in interface FileBasedPersisterCorepublic void refresh()
Copyright © 2019. All rights reserved.