com.atlassian.bamboo.v2.build.repository
Interface CustomSourceDirectoryAwareRepository

All Superinterfaces:
BambooPluginModule, RepositoryV2, java.io.Serializable
All Known Subinterfaces:
BranchMergingAwareRepository
All Known Implementing Classes:
BitbucketRepository, HgRepository, NullRepository, SvnRepository

public interface CustomSourceDirectoryAwareRepository
extends RepositoryV2

Repository that supports checkout to any directory.


Method Summary
 java.lang.String retrieveSourceCode(BuildContext buildContext, java.lang.String vcsRevisionKey, java.io.File sourceDirectory)
          Checks out the latest source code from an appropriate repository to specified directory
 
Methods inherited from interface com.atlassian.bamboo.v2.build.repository.RepositoryV2
collectChangesSinceLastBuild, getSourceCodeDirectory, isRepositoryDifferent
 

Method Detail

retrieveSourceCode

@NotNull
java.lang.String retrieveSourceCode(@NotNull
                                            BuildContext buildContext,
                                            @Nullable
                                            java.lang.String vcsRevisionKey,
                                            @NotNull
                                            java.io.File sourceDirectory)
                                    throws RepositoryException
Checks out the latest source code from an appropriate repository to specified directory

Parameters:
buildContext -
vcsRevisionKey - - may be null if you want latest code
sourceDirectory - - directory to checkout to
Returns:
vcsRevisionKey - the revision
Throws:
RepositoryException


Copyright © 2012 Atlassian. All Rights Reserved.