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 String
PATH_TO_TOUCH
static String
SVN_TEST_LOGIN_NAME
static String
SVN_TEST_LOGIN_PW
-
Constructor Summary
Constructors Constructor Description SvnRepositoryHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 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:
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
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
-
-