Package com.atlassian.bamboo.testutils
Class RepositoryHelper
java.lang.Object
com.atlassian.bamboo.testutils.RepositoryHelper
-
Nested Class Summary
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertCommandResultSuccessful
(RepositoryHelper.CommandResult commandResult) static String
static String
getCommitComment
(String issueKey) static @NotNull RepositoryHelper.CommandResult
runCommand
(File dir, String... args) static @NotNull RepositoryHelper.CommandResult
runCommand
(Path dir, String... args) static @NotNull RepositoryHelper.CommandResult
runCommandExplosively
(File cwd, String... args) static void
static void
-
Field Details
-
JIRA_PROJECT_KEY
- See Also:
-
JIRA_ISSUE_KEY
- See Also:
-
COMMIT_MESSAGE_CORE
- See Also:
-
-
Method Details
-
getCommitComment
-
getCommitComment
-
touchFile
- Throws:
IOException
-
touchFile
- Throws:
IOException
-
runCommand
@NotNull public static @NotNull RepositoryHelper.CommandResult runCommand(Path dir, String... args) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
runCommand
@NotNull public static @NotNull RepositoryHelper.CommandResult runCommand(File dir, String... args) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
runCommandExplosively
@NotNull public static @NotNull RepositoryHelper.CommandResult runCommandExplosively(File cwd, String... args) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
assertCommandResultSuccessful
-