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();
}
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();
}
Aggregations