Beispiel #1
0
 public BuildInfo(
     BuildKey buildKey,
     BuildDefinitionInfo buildDefinitionInfo,
     GitHubInfo?gitHubInfo,
     DateTime?startTime,
     DateTime?finishTime)
 {
     Key               = buildKey;
     DefinitionInfo    = buildDefinitionInfo;
     GitHubInfo        = gitHubInfo;
     PullRequestNumber = null;
     StartTime         = startTime;
     FinishTime        = finishTime;
 }
Beispiel #2
0
 public BuildInfo(
     BuildKey buildKey,
     BuildDefinitionInfo buildDefinitionInfo,
     GitHubPullRequestKey pullRequestKey,
     DateTime?startTime,
     DateTime?finishTime)
 {
     Key               = buildKey;
     DefinitionInfo    = buildDefinitionInfo;
     GitHubInfo        = new GitHubInfo(pullRequestKey.Organization, pullRequestKey.Repository);
     PullRequestNumber = pullRequestKey.Number;
     StartTime         = startTime;
     FinishTime        = finishTime;
 }
Beispiel #3
0
        public BuildInfo(
            BuildKey buildKey,
            BuildDefinitionInfo buildDefinitionInfo,
            string?gitHubOrganization,
            string?gitHubRepository,
            int?pullRequestNumber,
            DateTime?startTime,
            DateTime?finishTime)
        {
            Key            = buildKey;
            DefinitionInfo = buildDefinitionInfo;
            if (gitHubOrganization is object && gitHubRepository is object)
            {
                GitHubInfo        = new GitHubInfo(gitHubOrganization, gitHubRepository);
                PullRequestNumber = pullRequestNumber;
            }

            StartTime  = startTime;
            FinishTime = finishTime;
        }