Search in sources :

Example 26 with SvnCommand

use of com.thoughtworks.go.domain.materials.svn.SvnCommand in project gocd by gocd.

the class BuildRepositoryServiceIntegrationTest method setUp.

@Before
public void setUp() throws Exception {
    dbHelper.onSetUp();
    config.onSetUp();
    config.usingCruiseConfigDao(goConfigDao);
    goConfigService.forceNotifyListeners();
    svnTestRepo = new SvnTestRepo(temporaryFolder);
    svnRepo = new SvnCommand(null, svnTestRepo.projectRepositoryUrl());
    config.addPipeline(PIPELINE_NAME, DEV_STAGE, svnRepo, "foo");
    mingle = config.addStageToPipeline(PIPELINE_NAME, FT_STAGE, "bar");
    config.addAgent(HOSTNAME, AGENT_UUID);
    pipeline = dbHelper.newPipelineWithAllStagesPassed(mingle);
    goCache.clear();
}
Also used : SvnTestRepo(com.thoughtworks.go.helper.SvnTestRepo) SvnCommand(com.thoughtworks.go.domain.materials.svn.SvnCommand)

Example 27 with SvnCommand

use of com.thoughtworks.go.domain.materials.svn.SvnCommand in project gocd by gocd.

the class PipelineWithTwoStages method addToSetup.

public void addToSetup() throws Exception {
    TestRepo svnTestRepo = new SvnTestRepo(temporaryFolder);
    svnClient = new SvnCommand(null, svnTestRepo.projectRepositoryUrl());
    MaterialConfigs materialConfigs = MaterialConfigsMother.mockMaterialConfigs(svnTestRepo.projectRepositoryUrl());
    SvnMaterialConfig svnMaterialConfig = (SvnMaterialConfig) materialConfigs.first();
    svnMaterialConfig.setName(new CaseInsensitiveString(DEFAULT_MATERIAL));
    svnMaterialConfig.setConfigAttributes(Collections.singletonMap(ScmMaterialConfig.FOLDER, "default-folder"));
    configHelper.addPipelineWithGroup(groupName, pipelineName, materialConfigs, devStage, jobsOfDevStage);
    configHelper.addStageToPipeline(pipelineName, ftStage, JOB_FOR_FT_STAGE);
    configHelper.setPipelineLabelTemplate(pipelineName, "label-${COUNT}");
    dbHelper.onSetUp();
}
Also used : MaterialConfigs(com.thoughtworks.go.config.materials.MaterialConfigs) SvnTestRepo(com.thoughtworks.go.helper.SvnTestRepo) SvnTestRepo(com.thoughtworks.go.helper.SvnTestRepo) TestRepo(com.thoughtworks.go.helper.TestRepo) SvnCommand(com.thoughtworks.go.domain.materials.svn.SvnCommand) SvnMaterialConfig(com.thoughtworks.go.config.materials.svn.SvnMaterialConfig) CaseInsensitiveString(com.thoughtworks.go.config.CaseInsensitiveString)

Aggregations

SvnCommand (com.thoughtworks.go.domain.materials.svn.SvnCommand)27 CaseInsensitiveString (com.thoughtworks.go.config.CaseInsensitiveString)6 SvnTestRepo (com.thoughtworks.go.helper.SvnTestRepo)6 Before (org.junit.Before)6 SvnMaterial (com.thoughtworks.go.config.materials.svn.SvnMaterial)5 GoConfigFileHelper (com.thoughtworks.go.util.GoConfigFileHelper)5 MaterialConfigs (com.thoughtworks.go.config.materials.MaterialConfigs)4 SvnMaterialConfig (com.thoughtworks.go.config.materials.svn.SvnMaterialConfig)4 Subversion (com.thoughtworks.go.domain.materials.svn.Subversion)4 Test (org.junit.Test)4 DependencyMaterial (com.thoughtworks.go.config.materials.dependency.DependencyMaterial)3 PipelineWithTwoStages (com.thoughtworks.go.fixture.PipelineWithTwoStages)3 TestRepo (com.thoughtworks.go.helper.TestRepo)3 EnvironmentVariableContext (com.thoughtworks.go.util.command.EnvironmentVariableContext)3 SvnRepoFixture (com.thoughtworks.go.utils.SvnRepoFixture)3 PipelineConfig (com.thoughtworks.go.config.PipelineConfig)2 BuildCause (com.thoughtworks.go.domain.buildcause.BuildCause)2 SystemEnvironment (com.thoughtworks.go.util.SystemEnvironment)2 File (java.io.File)2 Date (java.util.Date)2