use of com.thoughtworks.go.config.remote.FileConfigOrigin in project gocd by gocd.
the class GoConfigMother method addPipeline.
public PipelineConfig addPipeline(CruiseConfig cruiseConfig, String pipelineName, String stageName, MaterialConfigs materialConfigs, String... buildNames) {
StageConfig stageConfig = StageConfigMother.custom(stageName, defaultBuildPlans(buildNames));
PipelineConfig pipelineConfig = new PipelineConfig(new CaseInsensitiveString(pipelineName), materialConfigs, stageConfig);
pipelineConfig.setOrigin(new FileConfigOrigin());
cruiseConfig.addPipeline(DEFAULT_GROUP, pipelineConfig);
return pipelineConfig;
}
use of com.thoughtworks.go.config.remote.FileConfigOrigin in project gocd by gocd.
the class FullConfigSaveFlow method postValidationUpdates.
protected void postValidationUpdates(CruiseConfig configForEdit, String xmlString) throws NoSuchFieldException, IllegalAccessException {
String md5 = CachedDigestUtils.md5Hex(xmlString);
configForEdit.setOrigins(new FileConfigOrigin());
MagicalGoConfigXmlLoader.setMd5(configForEdit, md5);
}
Aggregations