Package com.atlassian.bamboo.testutils
Class SvnRepositoryHelper
- java.lang.Object
-
- com.atlassian.bamboo.testutils.SvnRepositoryHelper
-
public class SvnRepositoryHelper extends Object
A helper class that executes some common commands on the Bamboo test module. Dumps various logging to Logger
-
-
Field Summary
Fields Modifier and Type Field Description static StringPATH_TO_TOUCHstatic StringSVN_TEST_LOGIN_NAMEstatic StringSVN_TEST_LOGIN_PW
-
Constructor Summary
Constructors Constructor Description SvnRepositoryHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
PATH_TO_TOUCH
public static final String PATH_TO_TOUCH
- See Also:
- Constant Field Values
-
SVN_TEST_LOGIN_NAME
public static final String SVN_TEST_LOGIN_NAME
-
SVN_TEST_LOGIN_PW
public static final String SVN_TEST_LOGIN_PW
-
-
Method Detail
-
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:
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
public static void lockSvnFastBuild(String planKey, String bambooHome) throws IOException
For the given plan creates a SVN lock by trying to commit a file and aborting immediately.- Parameters:
planKey-bambooHome-- Throws:
IOException
-
-