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}");
        }
Ejemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(Delay?.GetHashCode() ?? 0 +
                VsoInstance.GetHashCode() +
                VsoProject.GetHashCode() +
                BuildDefinitionId.GetHashCode() +
                SourceBranch?.GetHashCode() ?? 0 +
                VsoParameters?.GetHashCode() ?? 0);
     }
 }