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");
 }
Esempio n. 2
0
 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");
 }