public void requireApproval(String pipelineName, String stageName) { CruiseConfig cruiseConfig = loadForEdit(); cruiseConfig .pipelineConfigByName(new CaseInsensitiveString(pipelineName)) .findBy(new CaseInsensitiveString(stageName)) .updateApproval(Approval.manualApproval()); writeConfigFile(cruiseConfig); }
public void configureStageAsManualApproval(String pipelineName, String stage) { updateApproval(pipelineName, stage, Approval.manualApproval()); }