private string GetStatus()
 {
     if (Stages.Any(s => s.Activity == "Building"))
     {
         return("building");
     }
     if (Stages.Any(s => s.Status == "failed"))
     {
         return(_greyStatus ? "grey" : "failed");
     }
     return("passed");
 }
예제 #2
0
파일: Pipeline.cs 프로젝트: Adebeer/pypn
 private void RunSessionCommand(string typeOfSessionCommand, Action <IPipelineStage> sessionCommand, Action <IPipelineStage> postSessionCommand)
 {
     if (Stages.Any())
     {
         var callContext = new SessionCallContext(sessionCommand, postSessionCommand);
         RunNextSessionCommand(0, callContext);
         if (callContext.Exceptions.Any())
         {
             throw new AggregateException(string.Format("One or more Stages failed to successfully execute {0}Session", typeOfSessionCommand), callContext.Exceptions);
         }
     }
 }
 private string GetFixOverdue()
 {
     return(Stages.Any(s => s.Status == "failed") ? "overdue" : "good");
 }