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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }