示例#1
0
        private static ObservationState CcStatusToObservationStatus(CcBuildStatus status)
        {
            switch (status)
            {
            case CcBuildStatus.Success:
                return(ObservationState.Success);

            case CcBuildStatus.Exception:
            case CcBuildStatus.Failure:
                return(ObservationState.Failure);

            default:
                return(ObservationState.Unknown);
            }
        }
示例#2
0
 public ProjectsProjectBuilder Status(CcBuildStatus status)
 {
     _entity.lastBuildStatus = status.ToString();
     return(this);
 }