private QueuedBuild queueBuild(Build b, string branch) { bool success = false; QueuedBuild queuedB = new QueuedBuild(); if (String.IsNullOrWhiteSpace(branch)) { branch = b.SourceBranch; } if (b.Definition != null) { success = VSTSService.QueueBuild(b.Definition.Id, branch, "", out queuedB); } return(queuedB); }
private QueuedBuild queueBuild() { bool success = false; string branch = build.SourceBranch; QueuedBuild queuedB = new QueuedBuild(); if (String.IsNullOrWhiteSpace(branch)) { branch = build.SourceBranch == null ? "" : build.SourceBranch; } success = VSTSService.QueueBuild(build.Definition.Id, branch, "", out queuedB); return(queuedB); }
private QueuedBuild queueBuild(BuildDefinition b, string branch, string description) { bool success = false; QueuedBuild queuedB = new QueuedBuild(); if (String.IsNullOrWhiteSpace(branch)) { if (b.Repository != null) { branch = b.Repository.DefaultBranch == null ? "" : b.Repository.DefaultBranch; } } success = VSTSService.QueueBuild(b.Id, branch, description, out queuedB); return(queuedB); }