![]() Note: I'm not sure if this is officially supported by JetBrains, so you might find it breaks in a future version of TeamCity, but it currently works against version 8.0.2 (build 27482). $pinned = Get-TeamCityBuildPinnedState $myServerUrl $myBuildId $reader = new-object System.IO.StreamReader($stream) $url = "$serverUrl/httpAuth/app/rest/builds/id:$buildTypeId/pin/" JAX-RS is the Java API for REST web services whereas JAX-WS is the Java API for SOAP web services In the SmartBear REST API tutorial you will learn what exactly are RESTful Web Services and what are its best (and worst) use cases, the difference between a REST API and a SOAP API, and how to test a REST API for not only usage, but use cases This. Information on upgrading to this version is available. Version 2019 of the API is the most recent recommended version. This API can be authenticated using basic HTTP authentication. The API is REST-based and is available as an open-source plugin. # query the rest api using the session cookie for authentication Python TeamCity is a python wrapper for the TeamCity REST API which aims to provide a more conventionally pythonic way of controlling a TeamCity server. The TeamCity API allows developers to make HTTP requests to the TeamCity server and get a response. $cookies = Get-TeamCityNtlmAuthCookie $serverUrl I only cared about the build number but with some minor modifications of the XPath. This is a useful tool for continuous deployment to dev/test environments. The following powershell function demonstrates how to get the last successful TeamCity build number using the TeamCity REST API. It allows accessing resources via URL paths. look at how you can trigger a Jenkins deployment using its REST API and PowerShell. Querying the TeamCity Rest API with Powershell. TeamCity provides a REST API for integrating external applications and creating script interactions with the TeamCity server. ![]() # get a session cookie to use with the rest api When we build an API-based web (front-end and back-end separated). $request.Credentials = ::DefaultNetworkCredentials I've just had to do something similar to get the pinned state of builds. setting in the GitExtensions The Microsoft SCC API is supported by: MS VC 5. As per Eduardo Aquiles, if you configure your TeamCity server to support HTTP NTLM authentication ( TeamCity 8.x NTLM HTTP Authentication), you can get a session cookie (TCSESSIONID) from the /ntlmLogin.html url and use that to authenticate against the REST API. If it doesnt help please reproduce the problem and attach teamcity-vcs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |