Example #1
0
 public Pipeline newPipelineWithAllStagesPassed(PipelineConfig config) throws SQLException {
   Pipeline pipeline = newPipelineWithFirstStagePassed(config);
   for (StageConfig stageConfig : config) {
     if (config.first().equals(stageConfig)) {
       continue;
     }
     Stage instance =
         instanceFactory.createStageInstance(
             stageConfig,
             new DefaultSchedulingContext(GoConstants.DEFAULT_APPROVED_BY),
             md5,
             new TimeProvider());
     stageDao.saveWithJobs(pipeline, instance);
     passStage(instance);
   }
   return pipelineDao.loadPipeline(pipeline.getId());
 }
Example #2
0
 public Pipeline save(Pipeline pipeline) {
   return pipelineDao.saveWithStages(pipeline);
 }