Package com.atlassian.bamboo.testutils
Class SvnRepositoryHelper
java.lang.Object
com.atlassian.bamboo.testutils.SvnRepositoryHelper
A helper class that executes some common commands on the Bamboo test module. Dumps various logging to Logger
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voiddoFullCheckout(String repository, File checkoutDir) static voidlockSvnFastBuild(String planKey, String bambooHome) For the given plan creates a SVN lock by trying to commit a file and aborting immediately.static voidtouchSvnBuild(String repositoryRoot, String subpath, String commitComment) static voidtouchSvnBuild(String repositoryRoot, String subpath, String commitComment, String pathToTouch) static voidtouchSvnBuild(String repositoryRoot, String branchPath, String commitComment, String pathToTouch, String svnUsername, String svnPassword) static voidtouchSvnFastBuild(String repositoryRoot) Updates the build.xml file in the /testBuild/fastBuild sub dir (adding a space) and checks it in with default commentstatic voidtouchSvnFastBuild(String repositoryRoot, String commitComment) Updates the build.xml file in the /fastBuild sub dir (adding a space) and checks it instatic voidtouchSvnFastBuild(String repositoryRoot, String commitComment, String pathToTouch) Updates a file in the /fastBuild sub dir and checks it instatic voidtouchSvnFastBuild(String repositoryRoot, String commitComment, String pathToTouch, String svnUsername, String svnPassword) Updates a file in the /fastBuild sub dir and checks it instatic voidtouchSvnLongBuild(String repositoryRoot) static voidtouchSvnLongBuild(String repositoryRoot, String commitContent)
-
Field Details
-
PATH_TO_TOUCH
- See Also:
-
SVN_TEST_LOGIN_NAME
-
SVN_TEST_LOGIN_PW
-
-
Constructor Details
-
SvnRepositoryHelper
public SvnRepositoryHelper()
-
-
Method Details
-
touchSvnFastBuild
public static void touchSvnFastBuild(String repositoryRoot) throws IOException, InterruptedException Updates the build.xml file in the /testBuild/fastBuild sub dir (adding a space) and checks it in with default comment- Parameters:
repositoryRoot-- Throws:
IOExceptionInterruptedException
-
touchSvnFastBuild
public static void touchSvnFastBuild(String repositoryRoot, String commitComment) throws IOException, InterruptedException Updates the build.xml file in the /fastBuild sub dir (adding a space) and checks it in- Parameters:
repositoryRoot-commitComment- @throws IOException- Throws:
IOExceptionInterruptedException
-
touchSvnFastBuild
public static void touchSvnFastBuild(String repositoryRoot, String commitComment, String pathToTouch) throws IOException, InterruptedException Updates a file in the /fastBuild sub dir and checks it in- Parameters:
commitComment-pathToTouch- - the path (file) to update.- Throws:
IOExceptionInterruptedException
-
touchSvnFastBuild
public static void touchSvnFastBuild(String repositoryRoot, String commitComment, String pathToTouch, String svnUsername, String svnPassword) throws IOException, InterruptedException Updates a file in the /fastBuild sub dir and checks it in- Parameters:
commitComment-pathToTouch- - the path (file) to update.- Throws:
IOExceptionInterruptedException
-
touchSvnBuild
public static void touchSvnBuild(String repositoryRoot, String subpath, String commitComment) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
touchSvnBuild
public static void touchSvnBuild(String repositoryRoot, String subpath, String commitComment, String pathToTouch) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
touchSvnBuild
public static void touchSvnBuild(String repositoryRoot, String branchPath, String commitComment, String pathToTouch, String svnUsername, String svnPassword) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
doFullCheckout
public static void doFullCheckout(String repository, File checkoutDir) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
touchSvnLongBuild
public static void touchSvnLongBuild(String repositoryRoot, String commitContent) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
touchSvnLongBuild
public static void touchSvnLongBuild(String repositoryRoot) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
lockSvnFastBuild
For the given plan creates a SVN lock by trying to commit a file and aborting immediately.- Parameters:
planKey-bambooHome-- Throws:
IOException
-