Skip to content
Boris Modylevsky edited this page Apr 4, 2016 · 6 revisions

Welcome to the FluentTc wiki!

RemoteTc

Is the single entry point for all the TeamCity REST API methods with fluent API.

Features:

  • Supports paging on heavy queries
  • Supports retrieve of additional properties with single call
  • Fluent API with method changing with single entry point to all the methods

For example:

var builds = new RemoteTc().Connect(_ => _.ToHost("tc"))
    .GetBuilds(
        _ => _.BuildConfiguration(x => x.Id("bt2"))
              .NotPersonal()
              .NotRunning()
              .Branch(_ => _.NotBranched()), 
        _ => _.Start(10).Count(5),
        _ => _.IncludeStartDate().IncludeFinishDate());

For more examples about RemoteTc read: RemoteTc

LocalTc

Is the single entry point accessing the current context within TeamCity runner. Is ideal for writing console applications to be executed from TeamCity steps.

Features:

  • Get/set of any build parameter
  • Accessing the list of changes
  • Change build status
  • Publish artifacts

Example:

var localTc = new LocalTc();

var buildId = localTc.GetBuildParameter("build.id");

localTc.SetBuildParameter("parameter.name", "value1");

For more examples about LocalTc read: LocalTc

Clone this wiki locally