Example #1
0
 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());
 }
Example #2
0
 public void saveMaterials(final MaterialRevisions materialRevisions) {
   saveRevs(materialRevisions);
 }
Example #3
0
 public Pipeline savePipelineWithMaterials(Pipeline pipeline) {
   saveRevs(pipeline.getBuildCause().getMaterialRevisions());
   return save(pipeline);
 }