dohq_teamcity.BuildApi

Note

  • All serve_* method have aliases with get: serve_something == get_something
  • Some API have get method - default method to get object by locator (e.g agent_api.get('id:123') return Agent model by id
  • See more examples on page /examples/api/BuildApi and model examples
  • This is autogenerated page, don’t change them directly, use template. Read more in Development
Method HTTP request
add_tags POST /app/rest/builds/{buildLocator}/tags
cancel_build POST /app/rest/builds/{buildLocator}
cancel_build_0 GET /app/rest/builds/{buildLocator}/example/buildCancelRequest
delete_all_parameters DELETE /app/rest/builds/{buildLocator}/attributes
delete_build DELETE /app/rest/builds/{buildLocator}
delete_builds DELETE /app/rest/builds
delete_comment DELETE /app/rest/builds/{buildLocator}/comment
delete_parameter DELETE /app/rest/builds/{buildLocator}/attributes/{name}
get_artifact_dependency_changes GET /app/rest/builds/{buildLocator}/artifactDependencyChanges
get_artifacts_directory GET /app/rest/builds/{buildLocator}/artifactsDirectory
get_build_number GET /app/rest/builds/{buildLocator}/number
get_build_status_text GET /app/rest/builds/{buildLocator}/statusText
get_canceled_info GET /app/rest/builds/{buildLocator}/canceledInfo
get_children GET /app/rest/builds/{buildLocator}/artifacts/children{path}
get_children_alias GET /app/rest/builds/{buildLocator}/artifacts/{path}
get_content GET /app/rest/builds/{buildLocator}/artifacts/content{path}
get_content_alias GET /app/rest/builds/{buildLocator}/artifacts/files{path}
get_metadata GET /app/rest/builds/{buildLocator}/artifacts/metadata{path}
get_parameter GET /app/rest/builds/{buildLocator}/attributes/{name}
get_parameter_0 GET /app/rest/builds/{buildLocator}/resulting-properties/{propertyName}
get_parameter_value_long GET /app/rest/builds/{buildLocator}/attributes/{name}/value
get_parameters GET /app/rest/builds/{buildLocator}/attributes
get_pinned GET /app/rest/builds/{buildLocator}/pin
get_problems GET /app/rest/builds/{buildLocator}/problemOccurrences
get_resolved_parameter GET /app/rest/builds/{buildLocator}/resolved/{value}
get_root GET /app/rest/builds/{buildLocator}/artifacts
get_tests GET /app/rest/builds/{buildLocator}/testOccurrences
get_zipped GET /app/rest/builds/{buildLocator}/artifacts/archived{path}
pin_build PUT /app/rest/builds/{buildLocator}/pin
replace_comment PUT /app/rest/builds/{buildLocator}/comment
replace_tags PUT /app/rest/builds/{buildLocator}/tags
reset_build_finish_parameters DELETE /app/rest/builds/{buildLocator}/caches/finishProperties
serve_aggregated_build_status GET /app/rest/builds/aggregated/{buildLocator}/status
serve_aggregated_build_status_icon GET /app/rest/builds/aggregated/{buildLocator}/statusIcon{suffix}
serve_all_builds GET /app/rest/builds
serve_build GET /app/rest/builds/{buildLocator}
serve_build_actual_parameters GET /app/rest/builds/{buildLocator}/resulting-properties
serve_build_field_by_build_only GET /app/rest/builds/{buildLocator}/{field}
serve_build_related_issues GET /app/rest/builds/{buildLocator}/relatedIssues
serve_build_related_issues_old GET /app/rest/builds/{buildLocator}/related-issues
serve_build_statistic_value GET /app/rest/builds/{buildLocator}/statistics/{name}
serve_build_statistic_values GET /app/rest/builds/{buildLocator}/statistics
serve_build_status_icon GET /app/rest/builds/{buildLocator}/statusIcon{suffix}
serve_source_file GET /app/rest/builds/{buildLocator}/sources/files/{fileName}
serve_tags GET /app/rest/builds/{buildLocator}/tags
set_build_number PUT /app/rest/builds/{buildLocator}/number
set_build_status_text PUT /app/rest/builds/{buildLocator}/statusText
set_parameter POST /app/rest/builds/{buildLocator}/attributes
set_parameter_0 PUT /app/rest/builds/{buildLocator}/attributes/{name}
set_parameter_value_long PUT /app/rest/builds/{buildLocator}/attributes/{name}/value
set_parameters PUT /app/rest/builds/{buildLocator}/attributes
unpin_build DELETE /app/rest/builds/{buildLocator}/pin

add_tags

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
body = dohq_teamcity.Tags() # Tags |  (optional)
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.add_tags(build_locator, body=body, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->add_tags: %s\n" % e)
Name Types Notes
build_locator str  
body Tags [optional]
fields str [optional]
Return type:
Tags

Back to top

cancel_build

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
body = dohq_teamcity.BuildCancelRequest() # BuildCancelRequest |  (optional)
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.cancel_build(build_locator, body=body, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->cancel_build: %s\n" % e)
Name Types Notes
build_locator str  
body BuildCancelRequest [optional]
fields str [optional]
Return type:
Build

Back to top

cancel_build_0

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |

try:
    api_response = tc.build_api.cancel_build_0(build_locator)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->cancel_build_0: %s\n" % e)
Name Types Notes
build_locator str  
Return type:
BuildCancelRequest

Back to top

delete_all_parameters

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
fields = 'fields_example' # str |  (optional)

try:
    tc.build_api.delete_all_parameters(build_locator, fields=fields)
except ApiException as e:
    print("Exception when calling BuildApi->delete_all_parameters: %s\n" % e)
Name Types Notes
build_locator str  
fields str [optional]
Return type:
void (empty response body)

Back to top

delete_build

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |

try:
    tc.build_api.delete_build(build_locator)
except ApiException as e:
    print("Exception when calling BuildApi->delete_build: %s\n" % e)
Name Types Notes
build_locator str  
Return type:
void (empty response body)

Back to top

delete_builds

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

locator = 'locator_example' # str |  (optional)

try:
    tc.build_api.delete_builds(locator=locator)
except ApiException as e:
    print("Exception when calling BuildApi->delete_builds: %s\n" % e)
Name Types Notes
locator str [optional]
Return type:
void (empty response body)

Back to top

delete_comment

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |

try:
    tc.build_api.delete_comment(build_locator)
except ApiException as e:
    print("Exception when calling BuildApi->delete_comment: %s\n" % e)
Name Types Notes
build_locator str  
Return type:
void (empty response body)

Back to top

delete_parameter

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

name = 'name_example' # str |
build_locator = 'build_locator_example' # str |
fields = 'fields_example' # str |  (optional)

try:
    tc.build_api.delete_parameter(name, build_locator, fields=fields)
except ApiException as e:
    print("Exception when calling BuildApi->delete_parameter: %s\n" % e)
Name Types Notes
name str  
build_locator str  
fields str [optional]
Return type:
void (empty response body)

Back to top

get_artifact_dependency_changes

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.get_artifact_dependency_changes(build_locator, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_artifact_dependency_changes: %s\n" % e)
Name Types Notes
build_locator str  
fields str [optional]
Return type:
BuildChanges

Back to top

get_artifacts_directory

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |

try:
    api_response = tc.build_api.get_artifacts_directory(build_locator)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_artifacts_directory: %s\n" % e)
Name Types Notes
build_locator str  
Return type:
str

Back to top

get_build_number

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |

try:
    api_response = tc.build_api.get_build_number(build_locator)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_build_number: %s\n" % e)
Name Types Notes
build_locator str  
Return type:
str

Back to top

get_build_status_text

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |

try:
    api_response = tc.build_api.get_build_status_text(build_locator)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_build_status_text: %s\n" % e)
Name Types Notes
build_locator str  
Return type:
str

Back to top

get_canceled_info

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.get_canceled_info(build_locator, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_canceled_info: %s\n" % e)
Name Types Notes
build_locator str  
fields str [optional]
Return type:
Comment

Back to top

get_children

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

path = 'path_example' # str |
build_locator = 'build_locator_example' # str |
base_path = 'base_path_example' # str |  (optional)
locator = 'locator_example' # str |  (optional)
fields = 'fields_example' # str |  (optional)
resolve_parameters = true # bool |  (optional)
log_build_usage = true # bool |  (optional)

try:
    api_response = tc.build_api.get_children(path, build_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_children: %s\n" % e)
Name Types Notes
path str  
build_locator str  
base_path str [optional]
locator str [optional]
fields str [optional]
resolve_parameters bool [optional]
log_build_usage bool [optional]
Return type:
Files

Back to top

get_children_alias

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

path = 'path_example' # str |
build_locator = 'build_locator_example' # str |
base_path = 'base_path_example' # str |  (optional)
locator = 'locator_example' # str |  (optional)
fields = 'fields_example' # str |  (optional)
resolve_parameters = true # bool |  (optional)
log_build_usage = true # bool |  (optional)

try:
    api_response = tc.build_api.get_children_alias(path, build_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_children_alias: %s\n" % e)
Name Types Notes
path str  
build_locator str  
base_path str [optional]
locator str [optional]
fields str [optional]
resolve_parameters bool [optional]
log_build_usage bool [optional]
Return type:
Files

Back to top

get_content

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

path = 'path_example' # str |
build_locator = 'build_locator_example' # str |
response_builder = 'response_builder_example' # str |  (optional)
resolve_parameters = true # bool |  (optional)
log_build_usage = true # bool |  (optional)

try:
    tc.build_api.get_content(path, build_locator, response_builder=response_builder, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage)
except ApiException as e:
    print("Exception when calling BuildApi->get_content: %s\n" % e)
Name Types Notes
path str  
build_locator str  
response_builder str [optional]
resolve_parameters bool [optional]
log_build_usage bool [optional]
Return type:
void (empty response body)

Back to top

get_content_alias

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

path = 'path_example' # str |
build_locator = 'build_locator_example' # str |
resolve_parameters = true # bool |  (optional)
log_build_usage = true # bool |  (optional)

try:
    tc.build_api.get_content_alias(path, build_locator, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage)
except ApiException as e:
    print("Exception when calling BuildApi->get_content_alias: %s\n" % e)
Name Types Notes
path str  
build_locator str  
resolve_parameters bool [optional]
log_build_usage bool [optional]
Return type:
void (empty response body)

Back to top

get_metadata

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

path = 'path_example' # str |
build_locator = 'build_locator_example' # str |
fields = 'fields_example' # str |  (optional)
resolve_parameters = true # bool |  (optional)
log_build_usage = true # bool |  (optional)

try:
    api_response = tc.build_api.get_metadata(path, build_locator, fields=fields, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_metadata: %s\n" % e)
Name Types Notes
path str  
build_locator str  
fields str [optional]
resolve_parameters bool [optional]
log_build_usage bool [optional]
Return type:
file

Back to top

get_parameter

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

name = 'name_example' # str |
build_locator = 'build_locator_example' # str |
fields = 'fields_example' # str |  (optional)
fields2 = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.get_parameter(name, build_locator, fields=fields, fields2=fields2)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_parameter: %s\n" % e)
Name Types Notes
name str  
build_locator str  
fields str [optional]
fields2 str [optional]
Return type:
ModelProperty

Back to top

get_parameter_0

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
property_name = 'property_name_example' # str |

try:
    api_response = tc.build_api.get_parameter_0(build_locator, property_name)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_parameter_0: %s\n" % e)
Name Types Notes
build_locator str  
property_name str  
Return type:
str

Back to top

get_parameter_value_long

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

name = 'name_example' # str |
build_locator = 'build_locator_example' # str |
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.get_parameter_value_long(name, build_locator, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_parameter_value_long: %s\n" % e)
Name Types Notes
name str  
build_locator str  
fields str [optional]
Return type:
str

Back to top

get_parameters

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
locator = 'locator_example' # str |  (optional)
fields = 'fields_example' # str |  (optional)
fields2 = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.get_parameters(build_locator, locator=locator, fields=fields, fields2=fields2)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_parameters: %s\n" % e)
Name Types Notes
build_locator str  
locator str [optional]
fields str [optional]
fields2 str [optional]
Return type:
Properties

Back to top

get_pinned

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |

try:
    api_response = tc.build_api.get_pinned(build_locator)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_pinned: %s\n" % e)
Name Types Notes
build_locator str  
Return type:
str

Back to top

get_problems

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.get_problems(build_locator, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_problems: %s\n" % e)
Name Types Notes
build_locator str  
fields str [optional]
Return type:
ProblemOccurrences

Back to top

get_resolved_parameter

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
value = 'value_example' # str |

try:
    api_response = tc.build_api.get_resolved_parameter(build_locator, value)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_resolved_parameter: %s\n" % e)
Name Types Notes
build_locator str  
value str  
Return type:
str

Back to top

get_root

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
base_path = 'base_path_example' # str |  (optional)
locator = 'locator_example' # str |  (optional)
fields = 'fields_example' # str |  (optional)
resolve_parameters = true # bool |  (optional)
log_build_usage = true # bool |  (optional)

try:
    api_response = tc.build_api.get_root(build_locator, base_path=base_path, locator=locator, fields=fields, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_root: %s\n" % e)
Name Types Notes
build_locator str  
base_path str [optional]
locator str [optional]
fields str [optional]
resolve_parameters bool [optional]
log_build_usage bool [optional]
Return type:
Files

Back to top

get_tests

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.get_tests(build_locator, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->get_tests: %s\n" % e)
Name Types Notes
build_locator str  
fields str [optional]
Return type:
TestOccurrences

Back to top

get_zipped

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

path = 'path_example' # str |
build_locator = 'build_locator_example' # str |
base_path = 'base_path_example' # str |  (optional)
locator = 'locator_example' # str |  (optional)
name = 'name_example' # str |  (optional)
resolve_parameters = true # bool |  (optional)
log_build_usage = true # bool |  (optional)

try:
    tc.build_api.get_zipped(path, build_locator, base_path=base_path, locator=locator, name=name, resolve_parameters=resolve_parameters, log_build_usage=log_build_usage)
except ApiException as e:
    print("Exception when calling BuildApi->get_zipped: %s\n" % e)
Name Types Notes
path str  
build_locator str  
base_path str [optional]
locator str [optional]
name str [optional]
resolve_parameters bool [optional]
log_build_usage bool [optional]
Return type:
void (empty response body)

Back to top

pin_build

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
body = 'body_example' # str |  (optional)

try:
    tc.build_api.pin_build(build_locator, body=body)
except ApiException as e:
    print("Exception when calling BuildApi->pin_build: %s\n" % e)
Name Types Notes
build_locator str  
body str [optional]
Return type:
void (empty response body)

Back to top

replace_comment

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
body = 'body_example' # str |  (optional)

try:
    tc.build_api.replace_comment(build_locator, body=body)
except ApiException as e:
    print("Exception when calling BuildApi->replace_comment: %s\n" % e)
Name Types Notes
build_locator str  
body str [optional]
Return type:
void (empty response body)

Back to top

replace_tags

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
locator = 'locator_example' # str |  (optional)
body = dohq_teamcity.Tags() # Tags |  (optional)
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.replace_tags(build_locator, locator=locator, body=body, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->replace_tags: %s\n" % e)
Name Types Notes
build_locator str  
locator str [optional]
body Tags [optional]
fields str [optional]
Return type:
Tags

Back to top

reset_build_finish_parameters

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |

try:
    tc.build_api.reset_build_finish_parameters(build_locator)
except ApiException as e:
    print("Exception when calling BuildApi->reset_build_finish_parameters: %s\n" % e)
Name Types Notes
build_locator str  
Return type:
void (empty response body)

Back to top

serve_aggregated_build_status

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |

try:
    api_response = tc.build_api.serve_aggregated_build_status(build_locator)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->serve_aggregated_build_status: %s\n" % e)
Name Types Notes
build_locator str  
Return type:
str

Back to top

serve_aggregated_build_status_icon

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
suffix = 'suffix_example' # str |

try:
    tc.build_api.serve_aggregated_build_status_icon(build_locator, suffix)
except ApiException as e:
    print("Exception when calling BuildApi->serve_aggregated_build_status_icon: %s\n" % e)
Name Types Notes
build_locator str  
suffix str  
Return type:
void (empty response body)

Back to top

serve_all_builds

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_type = 'build_type_example' # str |  (optional)
status = 'status_example' # str |  (optional)
triggered_by_user = 'triggered_by_user_example' # str |  (optional)
include_personal = true # bool |  (optional)
include_canceled = true # bool |  (optional)
only_pinned = true # bool |  (optional)
tag = ['tag_example'] # list[str] |  (optional)
agent_name = 'agent_name_example' # str |  (optional)
since_build = 'since_build_example' # str |  (optional)
since_date = 'since_date_example' # str |  (optional)
start = 789 # int |  (optional)
count = 56 # int |  (optional)
locator = 'locator_example' # str |  (optional)
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.serve_all_builds(build_type=build_type, status=status, triggered_by_user=triggered_by_user, include_personal=include_personal, include_canceled=include_canceled, only_pinned=only_pinned, tag=tag, agent_name=agent_name, since_build=since_build, since_date=since_date, start=start, count=count, locator=locator, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->serve_all_builds: %s\n" % e)
Name Types Notes
build_type str [optional]
status str [optional]
triggered_by_user str [optional]
include_personal bool [optional]
include_canceled bool [optional]
only_pinned bool [optional]
tag list[str] [optional]
agent_name str [optional]
since_build str [optional]
since_date str [optional]
start int [optional]
count int [optional]
locator str [optional]
fields str [optional]
Return type:
Builds

Back to top

serve_build

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.serve_build(build_locator, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->serve_build: %s\n" % e)
Name Types Notes
build_locator str  
fields str [optional]
Return type:
Build

Back to top

serve_build_actual_parameters

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.serve_build_actual_parameters(build_locator, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->serve_build_actual_parameters: %s\n" % e)
Name Types Notes
build_locator str  
fields str [optional]
Return type:
Properties

Back to top

serve_build_field_by_build_only

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
field = 'field_example' # str |

try:
    api_response = tc.build_api.serve_build_field_by_build_only(build_locator, field)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->serve_build_field_by_build_only: %s\n" % e)
Name Types Notes
build_locator str  
field str  
Return type:
str

Back to top

serve_build_statistic_value

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
name = 'name_example' # str |

try:
    api_response = tc.build_api.serve_build_statistic_value(build_locator, name)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->serve_build_statistic_value: %s\n" % e)
Name Types Notes
build_locator str  
name str  
Return type:
str

Back to top

serve_build_statistic_values

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.serve_build_statistic_values(build_locator, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->serve_build_statistic_values: %s\n" % e)
Name Types Notes
build_locator str  
fields str [optional]
Return type:
Properties

Back to top

serve_build_status_icon

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
suffix = 'suffix_example' # str |

try:
    tc.build_api.serve_build_status_icon(build_locator, suffix)
except ApiException as e:
    print("Exception when calling BuildApi->serve_build_status_icon: %s\n" % e)
Name Types Notes
build_locator str  
suffix str  
Return type:
void (empty response body)

Back to top

serve_source_file

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
file_name = 'file_name_example' # str |

try:
    tc.build_api.serve_source_file(build_locator, file_name)
except ApiException as e:
    print("Exception when calling BuildApi->serve_source_file: %s\n" % e)
Name Types Notes
build_locator str  
file_name str  
Return type:
void (empty response body)

Back to top

serve_tags

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
locator = 'locator_example' # str |  (optional)
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.serve_tags(build_locator, locator=locator, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->serve_tags: %s\n" % e)
Name Types Notes
build_locator str  
locator str [optional]
fields str [optional]
Return type:
Tags

Back to top

set_build_number

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
body = 'body_example' # str |  (optional)

try:
    api_response = tc.build_api.set_build_number(build_locator, body=body)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->set_build_number: %s\n" % e)
Name Types Notes
build_locator str  
body str [optional]
Return type:
str

Back to top

set_build_status_text

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
body = 'body_example' # str |  (optional)

try:
    api_response = tc.build_api.set_build_status_text(build_locator, body=body)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->set_build_status_text: %s\n" % e)
Name Types Notes
build_locator str  
body str [optional]
Return type:
str

Back to top

set_parameter

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
body = dohq_teamcity.ModelProperty() # ModelProperty |  (optional)
fields = 'fields_example' # str |  (optional)
fields2 = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.set_parameter(build_locator, body=body, fields=fields, fields2=fields2)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->set_parameter: %s\n" % e)
Name Types Notes
build_locator str  
body ModelProperty [optional]
fields str [optional]
fields2 str [optional]
Return type:
ModelProperty

Back to top

set_parameter_0

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

name = 'name_example' # str |
build_locator = 'build_locator_example' # str |
body = dohq_teamcity.ModelProperty() # ModelProperty |  (optional)
fields = 'fields_example' # str |  (optional)
fields2 = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.set_parameter_0(name, build_locator, body=body, fields=fields, fields2=fields2)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->set_parameter_0: %s\n" % e)
Name Types Notes
name str  
build_locator str  
body ModelProperty [optional]
fields str [optional]
fields2 str [optional]
Return type:
ModelProperty

Back to top

set_parameter_value_long

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

name = 'name_example' # str |
build_locator = 'build_locator_example' # str |
body = 'body_example' # str |  (optional)
fields = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.set_parameter_value_long(name, build_locator, body=body, fields=fields)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->set_parameter_value_long: %s\n" % e)
Name Types Notes
name str  
build_locator str  
body str [optional]
fields str [optional]
Return type:
str

Back to top

set_parameters

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
body = dohq_teamcity.Properties() # Properties |  (optional)
fields = 'fields_example' # str |  (optional)
fields2 = 'fields_example' # str |  (optional)

try:
    api_response = tc.build_api.set_parameters(build_locator, body=body, fields=fields, fields2=fields2)
   pprint(api_response)
except ApiException as e:
    print("Exception when calling BuildApi->set_parameters: %s\n" % e)
Name Types Notes
build_locator str  
body Properties [optional]
fields str [optional]
fields2 str [optional]
Return type:
Properties

Back to top

unpin_build

from pprint import pprint
from dohq_teamcity import TeamCity, ApiException

# username/password authentication
tc = TeamCity("https://teamcity.example.com", auth=('username', 'password'))

build_locator = 'build_locator_example' # str |
body = 'body_example' # str |  (optional)

try:
    tc.build_api.unpin_build(build_locator, body=body)
except ApiException as e:
    print("Exception when calling BuildApi->unpin_build: %s\n" % e)
Name Types Notes
build_locator str  
body str [optional]
Return type:
void (empty response body)

Back to top