use of com.thoughtworks.go.server.service.materials.MaterialPoller in project gocd by gocd.
the class PluggableSCMMaterialUpdaterIntegrationTest method mockSCMExtensionInPoller.
private void mockSCMExtensionInPoller() {
Map<Class, MaterialPoller> materialPollerMap = (Map<Class, MaterialPoller>) ReflectionUtil.getField(materialService, "materialPollerMap");
materialPollerMap.put(PluggableSCMMaterial.class, new PluggableSCMMaterialPoller(materialRepository, scmExtension, transactionTemplate));
ReflectionUtil.setField(materialService, "materialPollerMap", materialPollerMap);
}
use of com.thoughtworks.go.server.service.materials.MaterialPoller in project gocd by gocd.
the class ConfigMaterialUpdater method updateConfigurationFromCheckout.
private void updateConfigurationFromCheckout(File folder, Revision revision, Material material) {
MaterialPoller poller = this.materialService.getPollerImplementation(material);
poller.checkout(material, folder, revision, this.subprocessExecutionContext);
this.repoConfigDataSource.onCheckoutComplete(material.config(), folder, revision.getRevision());
}
Aggregations