matmalkowski / netcore-teamcity-api Goto Github PK
View Code? Open in Web Editor NEWNetCoreTeamCity is a client library targeting .netcore (.NET Platform 1.6) that provides an easy way to interact with the TeamCity API.
License: MIT License
NetCoreTeamCity is a client library targeting .netcore (.NET Platform 1.6) that provides an easy way to interact with the TeamCity API.
License: MIT License
In TeamCity.cs the TeamCityConnectionSettingsBuilder's method UsingSSL() should be given the argument usingSSL. Currently there is no way to specify the builder to use standard http and not https. I believe line 10 should be the following
var connectionConfig = new TeamCityConnectionSettingsBuilder().ToHost(host).UsingSSL(usingSSL).AsUser(userName, password).Build();
Project features (e.g. issue trackers, versioned settings, custom charts, shared resources and third-party report tabs) are exposed as entries under the "project" node and via dedicated requests.
It should be public as QueuedBuildService propose public Run method.
There are two endpoints dedicated at using in commit hooks from the version control repositories:
Since TeamCity 10 there is experimental support for exposing single test invocations / runs:
List all test runs with all the invocations flattened:
Build Configuration/Template details: GET http://teamcity:8111/app/rest/buildTypes/ (details on the Build Configuration locator).
Please note that there is no transaction, etc. support for settings editing in TeamCity, so all the settings modified via REST API are taken into account at once. This can result in half-configured builds triggered, etc. Please make sure you pause a build configuration before changing its settings if this aspect is important for your case.
To get aggregated status for several build configurations, s ee Build Status Icon section.
Get/set paused build configuration state: GET/PUT http://teamcity:8111/app/rest/buildTypes/ /paused (put "true" or "false" text as text/plain)
Build configuration settings: GET/DELETE/PUT http://teamcity:8111/app/rest/buildTypes/ /settings/<setting_name>
Build configuration parameters: GET/DELETE/PUT
http://teamcity:8111/app/rest/buildTypes/ /parameters/<parameter_name> (produces XML, JSON and plain text depending on the "Accept" header, accepts plain text and XML and JSON). The requests .../parameters/<parameter_name>/name and .../parameters/<parameter_name>/value are also supported.
Build configuration steps: GET/DELETE http://teamcity:8111/app/rest/buildTypes/ /steps/<step_id>
Create build configuration step: POST http://teamcity:8111/app/rest/buildTypes//steps. The XML/JSON posted is the same as retrieved by GET request to .../steps/<step_id> except for the secure settings like password: these are not included into responses and should be supplied before POSTing back
Features, triggers, agent requirements, artifact and snapshot dependencies follow the same pattern as steps with URLs like:
http://teamcity:8111/app/rest/buildTypes//features/
http://teamcity:8111/app/rest/buildTypes//triggers/
http://teamcity:8111/app/rest/buildTypes//agent-requirements/
http://teamcity:8111/app/rest/buildTypes//artifact-dependencies/
http://teamcity:8111/app/rest/buildTypes//snapshot-dependencies/
Since TeamCity 10, it is possible to disable/enable artifact dependencies and agent requirements:
Disable/enable an artifact dependency PUT http://teamcity:8111/app/rest/buildTypes//artifact-dependencies//disabled (put " true " or "false" text as text/plain)
Disable/enable an agent requirement PUT http://teamcity:8111/app/rest/buildTypes//agent-requirements//disabled (put " true " or "false" text as text/plain)
Build configuration VCS roots: GET/DELETE http://teamcity:8111/app/rest/buildTypes//vcs-root-entries/
Attach VCS root to a build configuration: POST http://teamcity:8111/app/rest/buildTypes//vcs-root-entries . The XML/JSON posted is the same as retrieved by GET request to http://teamcity:8111/app/rest/buildTypes//vcs-root-entries/ except for the secure settings like password: these are not included into responses and should be supplied before POSTing back.
Create a new build configuration with all settings: POST http://teamcity:8111/app/rest/buildTypes . The XML/JSON posted is the same as retrieved by GET request. (Note that /app/rest/project/XXX/buildTypes still uses the previous version notation and accepts another entity.)
Create a new empty build configuration: POST plain text (name) to http://teamcity:8111/app/rest/projects//buildTypes
Copy a build configuration: POST XML to http://teamcity:8111/app/rest/projects//buildTypes
Read, detach and attach a build configuration from/to a template: GET/DELETE/PUT http://teamcity:8111/app/rest/buildTypes//template (PUT accepts template locator with "text/plain" Content-Type)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.