Пример #1
0
 public void requireApproval(String pipelineName, String stageName) {
   CruiseConfig cruiseConfig = loadForEdit();
   cruiseConfig
       .pipelineConfigByName(new CaseInsensitiveString(pipelineName))
       .findBy(new CaseInsensitiveString(stageName))
       .updateApproval(Approval.manualApproval());
   writeConfigFile(cruiseConfig);
 }
Пример #2
0
 public void configureStageAsManualApproval(String pipelineName, String stage) {
   updateApproval(pipelineName, stage, Approval.manualApproval());
 }