private string CreateBuildSourceInfo() { var parts = SourceBranch.Split('/'); var branchName = parts.Last(); var versionShort = String.Empty; if (!string.IsNullOrEmpty(SourceVersion)) { versionShort = SourceVersion.Substring(0, 7); } return($"{branchName} {versionShort}"); }
public override int GetHashCode() { unchecked { return(Delay?.GetHashCode() ?? 0 + VsoInstance.GetHashCode() + VsoProject.GetHashCode() + BuildDefinitionId.GetHashCode() + SourceBranch?.GetHashCode() ?? 0 + VsoParameters?.GetHashCode() ?? 0); } }