Exemple #1
0
        public TfsBuild(Build build)
        {
            _id = build.Url;
            Id  = build.Id.ToString();

            QueueTime  = build.QueueTime;
            BranchName = build.SourceBranch;

            _nativeResult = build.Result;
            _nativeStatus = build.Status;

            RequestedBy  = new TfsUser(build.RequestedBy);
            RequestedFor = new TfsUser(build.RequestedFor);
            Definition   = new TfsBuildDefinition(build.Definition);
        }
 public void UpdateLinks(TfsBuildDefinition definition)
 {
     DefinitionWeb = TryGetLink(definition.Links, "web");
 }