QualiSystems / FluentTc

:ocean: :two_men_holding_hands: :office: Integrate with TeamCity fluently
https://www.nuget.org/packages/fluenttc
Apache License 2.0
44 stars 35 forks source link

Develop #105

Closed GibbOne closed 7 years ago

GibbOne commented 7 years ago

Issue details

It allows to create and attach VCS roots.

Relates to issue

Connect #34.

Checklist

Example of using new/modified functionality

            var vcsRoot = fluentClient.CreateVcsRoot(project,
                vcs => vcs.AuthMethod(FluentTc.Locators.AuthMethod.Password)
                    .Id(id)
                    .Name($"Project Master")
                    .Branch("refs/heads/master")
                    .IgnoreKnownHosts(true)
                    .Password(LDAP_TC_PWD)
                    .Username(LDAP_TC_USER)
                    .SubModuleCheckout(true)
                    .Url(new Uri($"https://git.git"))
                    .UseAlternates(true)
                    .UserNameStyle(FluentTc.Locators.UserNameStyle.UserId)
                    .AgentCleanFilePolicy(FluentTc.Locators.AgentCleanFilePolicy.AllUntracked)
                    .AgentCleanPolicy(FluentTc.Locators.AgentCleanPolicy.OnBranchChange));

            fluentClient.AttachVcsRootToBuildConfiguration(b => b.Id(buildId), vcsRoot);
GibbOne commented 7 years ago

Thank you!