private Pipeline scheduleWithFileChanges(PipelineConfig pipelineConfig) { BuildCause buildCause = BuildCause.createWithModifications(modifyOneFile(pipelineConfig), ""); saveRevs(buildCause.getMaterialRevisions()); return instanceFactory.createPipelineInstance( pipelineConfig, buildCause, new DefaultSchedulingContext(GoConstants.DEFAULT_APPROVED_BY), md5, new TimeProvider()); }
public void saveMaterials(final MaterialRevisions materialRevisions) { saveRevs(materialRevisions); }
public Pipeline savePipelineWithMaterials(Pipeline pipeline) { saveRevs(pipeline.getBuildCause().getMaterialRevisions()); return save(pipeline); }