Class GitRepositoryHelper
java.lang.Object
com.atlassian.bamboo.testutils.vcs.git.GitRepositoryHelper
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addFile
(@NotNull GitRepositoryDescriptor repositoryDescriptor, @NotNull File file, @NotNull String commitMessage) static void
checkoutBranch
(@NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull String branchName) static void
createBranch
(@NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull String branchName) static void
createTag
(@NotNull GitRepositoryDescriptor clonedWorkspace, String tagName, boolean isLightweightTag, boolean push) static void
deleteBranch
(@NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull String branchName) static void
pushBranch
(@NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull String branchName) static @Nullable String
readChangeSetId
(@NotNull File workspaceRoot, @Nullable String branchName) static @Nullable String
touch
(@NotNull RepositoryDescriptor remoteRepository) static @Nullable String
touch
(@NotNull RepositoryDescriptor remoteRepository, @NotNull String comment) static @Nullable String
touch
(@NotNull RepositoryDescriptor remoteRepository, @NotNull Optional<String> branchName, @NotNull String pathToTouch, @NotNull String comment) static @Nullable String
touch
(@NotNull RepositoryDescriptor remoteRepository, @NotNull Optional<String> branchName, @NotNull String pathToTouch, @NotNull String comment, @NotNull String gitUserName, @NotNull String gitUserEmail) static @Nullable String
touchBranch
(@NotNull RepositoryDescriptor remoteRepository, @NotNull String branchName, @NotNull String comment) static @Nullable String
touchClonedWorkspace
(@NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull String pathToTouch, @NotNull String comment) static @Nullable String
touchClonedWorkspace
(@NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull String pathToTouch, @NotNull String comment, @NotNull String gitUserName, @NotNull String gitUserEmail)
-
Field Details
-
GIT_USER_NAME
-
GIT_USER_EMAIL
-
DEFAULT_PATH_TO_TOUCH
- See Also:
-
-
Method Details
-
touch
@Nullable public static @Nullable String touch(@NotNull @NotNull RepositoryDescriptor remoteRepository, @NotNull @NotNull String comment) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
touchBranch
@Nullable public static @Nullable String touchBranch(@NotNull @NotNull RepositoryDescriptor remoteRepository, @NotNull @NotNull String branchName, @NotNull @NotNull String comment) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
touch
@Nullable public static @Nullable String touch(@NotNull @NotNull RepositoryDescriptor remoteRepository) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
touch
@Nullable public static @Nullable String touch(@NotNull @NotNull RepositoryDescriptor remoteRepository, @NotNull @NotNull Optional<String> branchName, @NotNull @NotNull String pathToTouch, @NotNull @NotNull String comment) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
touch
@Nullable public static @Nullable String touch(@NotNull @NotNull RepositoryDescriptor remoteRepository, @NotNull @NotNull Optional<String> branchName, @NotNull @NotNull String pathToTouch, @NotNull @NotNull String comment, @NotNull @NotNull String gitUserName, @NotNull @NotNull String gitUserEmail) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
touchClonedWorkspace
@Nullable public static @Nullable String touchClonedWorkspace(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull @NotNull String pathToTouch, @NotNull @NotNull String comment) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
touchClonedWorkspace
@Nullable public static @Nullable String touchClonedWorkspace(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull @NotNull String pathToTouch, @NotNull @NotNull String comment, @NotNull @NotNull String gitUserName, @NotNull @NotNull String gitUserEmail) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
readChangeSetId
@Nullable public static @Nullable String readChangeSetId(@NotNull @NotNull File workspaceRoot, @Nullable @Nullable String branchName) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
checkoutBranch
public static void checkoutBranch(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull @NotNull String branchName) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
createBranch
public static void createBranch(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull @NotNull String branchName) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
pushBranch
public static void pushBranch(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull @NotNull String branchName) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
deleteBranch
public static void deleteBranch(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, @NotNull @NotNull String branchName) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
addFile
public static void addFile(@NotNull @NotNull GitRepositoryDescriptor repositoryDescriptor, @NotNull @NotNull File file, @NotNull @NotNull String commitMessage) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
commit
public static RepositoryHelper.CommandResult commit(Path cwd, String... someArgs) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
commit
public static RepositoryHelper.CommandResult commit(File cwd, String... someArgs) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
createTag
public static void createTag(@NotNull @NotNull GitRepositoryDescriptor clonedWorkspace, String tagName, boolean isLightweightTag, boolean push) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-