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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
doFullCheckout
(String repository, File checkoutDir) static void
lockSvnFastBuild
(String planKey, String bambooHome) For the given plan creates a SVN lock by trying to commit a file and aborting immediately.static void
touchSvnBuild
(String repositoryRoot, String subpath, String commitComment) static void
touchSvnBuild
(String repositoryRoot, String subpath, String commitComment, String pathToTouch) static void
touchSvnBuild
(String repositoryRoot, String branchPath, String commitComment, String pathToTouch, String svnUsername, String svnPassword) static void
touchSvnFastBuild
(String repositoryRoot) Updates the build.xml file in the /testBuild/fastBuild sub dir (adding a space) and checks it in with default commentstatic void
touchSvnFastBuild
(String repositoryRoot, String commitComment) Updates the build.xml file in the /fastBuild sub dir (adding a space) and checks it instatic void
touchSvnFastBuild
(String repositoryRoot, String commitComment, String pathToTouch) Updates a file in the /fastBuild sub dir and checks it instatic void
touchSvnFastBuild
(String repositoryRoot, String commitComment, String pathToTouch, String svnUsername, String svnPassword) Updates a file in the /fastBuild sub dir and checks it instatic void
touchSvnLongBuild
(String repositoryRoot) static void
touchSvnLongBuild
(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:
IOException
InterruptedException
-
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
InterruptedException
-
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:
IOException
InterruptedException
-
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:
IOException
InterruptedException
-
touchSvnBuild
public static void touchSvnBuild(String repositoryRoot, String subpath, String commitComment) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
touchSvnBuild
public static void touchSvnBuild(String repositoryRoot, String subpath, String commitComment, String pathToTouch) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
touchSvnBuild
public static void touchSvnBuild(String repositoryRoot, String branchPath, String commitComment, String pathToTouch, String svnUsername, String svnPassword) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
doFullCheckout
public static void doFullCheckout(String repository, File checkoutDir) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
touchSvnLongBuild
public static void touchSvnLongBuild(String repositoryRoot, String commitContent) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
touchSvnLongBuild
public static void touchSvnLongBuild(String repositoryRoot) throws IOException, InterruptedException - Throws:
IOException
InterruptedException
-
lockSvnFastBuild
For the given plan creates a SVN lock by trying to commit a file and aborting immediately.- Parameters:
planKey
-bambooHome
-- Throws:
IOException
-