@After public void teardown() throws Exception { dbHelper.onTearDown(); FileUtil.deleteFolder(goConfigService.artifactsDir()); pipelineScheduleQueue.clear(); agentAssignment.clear(); CONFIG_HELPER.onTearDown(); }
@After public void teardown() throws Exception { goCache.clear(); agentService.clearAll(); fixture.onTearDown(); dbHelper.onTearDown(); configHelper.onTearDown(); FileUtil.deleteFolder(goConfigService.artifactsDir()); agentAssignment.clear(); agentRemoteHandler.connectedAgents().clear(); }
@Before public void setup() throws Exception { CONFIG_HELPER = new GoConfigFileHelper(); dbHelper.onSetUp(); CONFIG_HELPER.usingCruiseConfigDao(goConfigDao).initializeConfigFile(); CONFIG_HELPER.onSetUp(); repository = new SvnCommand(null, testRepo.projectRepositoryUrl()); goConfigService.forceNotifyListeners(); agentAssignment.clear(); goCache.clear(); CONFIG_HELPER.addPipeline( "blahPipeline", "blahStage", MaterialConfigsMother.hgMaterialConfig( "file:///home/cruise/projects/cruisen/manual-testing/ant_hg/dummy"), "job1", "job2"); CONFIG_HELPER.makeJobRunOnAllAgents("blahPipeline", "blahStage", "job2"); }