コード例 #1
0
import json
import os

from pyteamcity import TeamCity

tc = TeamCity()

# data = tc.get_all_users()
# print(json.dumps(data, indent=4))

data = tc.get_user_by_username('codyw')
print(json.dumps(data, indent=4))

# data = tc.get_all_vcs_roots()
# print(json.dumps(data, indent=4))

# data = tc.get_vcs_root_by_vcs_root_id('CodeRepo')
# print(json.dumps(data, indent=4))

# data = tc.get_all_build_types()
# print(json.dumps(data, indent=4))

# data = tc.get_changes_by_build_id(73450)
# print(json.dumps(data, indent=4))

# data = tc.get_build_statistics_by_build_id(73450)
# print(json.dumps(data, indent=4))

# data = tc.get_build_tags_by_build_id(73450)
# print(json.dumps(data, indent=4))
コード例 #2
0
ファイル: sample.py プロジェクト: Shekeen/pyteamcity
import json

from pyteamcity import TeamCity

tc = TeamCity()

# data = tc.get_all_users()
# print(json.dumps(data, indent=4))

data = tc.get_user_by_username('codyw')
print(json.dumps(data, indent=4))

# data = tc.get_all_vcs_roots()
# print(json.dumps(data, indent=4))

# data = tc.get_vcs_root_by_vcs_root_id('CodeRepo')
# print(json.dumps(data, indent=4))

# data = tc.get_all_build_types()
# print(json.dumps(data, indent=4))

# data = tc.get_changes_by_build_id(73450)
# print(json.dumps(data, indent=4))

# data = tc.get_build_statistics_by_build_id(73450)
# print(json.dumps(data, indent=4))

# data = tc.get_build_tags_by_build_id(73450)
# print(json.dumps(data, indent=4))

# data = tc.get_change_by_change_id(16884)