For example, in order to retrieve not personal, pinned, successful builds, that ran during the recent day under specific build configuration, use this:įluentTc was inspired by Paul Stack's TeamCitySharp library.įor questions/suggestions feel free to comment below. This tutorial will show you how you can run. Of course you can apply different query filters when retrieving your builds. Ghost Inspector test suites can be executed inside your TeamCity builds by leveraging the Ghost Inspector API. This is how it can be achieved with FluentTc: If there is large amount of builds, you'd probably prefer retrieving them with paging, i.e. The above methods return default amount of builds as retrieved from TeamCity REST API. REST API allows accessing TeamCity resources ( entities) via their URL paths. And this is how it can be done using FluentTc: TeamCity General Topics Return all projects and buildTypes with single rest api call Follow Jransom Created 15:01 I love this API But I have a nested hierarchy of Projects, sub-projects, and build configurations. It also provides an option to retrieve additional properties. If you are familiar with TeamCity REST API you might know that when retrieving list of entities, it returns only some basic properties of those entities, Id, Name and some Href. In order to get all the build of specific Build Configuration, you can simply use: So now, having the reference, let's get to the code. Decorates console output to allow TeamCity build script interaction. Or typing the below in your Package Manager Console of Supports both guest and basic authorization Provides read-only access to TeamCity REST API. In order to get started to use it, you need to install the recent package from Manage Nuget packages -> Search FluentTc 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. That's what I like in libraries I consume, so I developed a library that looks like I like it and I hope that you r will find it also usable and easy to use. Im looking for a convenient way to provide each developer with a way to set up a proper build environment on their desktops. When I started working on this library, I had in mind, that it should has fluent, easy to discover API. 1 Weve got a TeamCity (9.1) build configuration which is based on several snapshot dependencies to build correctly. Go to your project in TeamCity and select Edit Configuration Settings. In this post I would like to present FluentTc: an easy to use library for all the above operations. You can use our Endtest API in order to integrate Endtest with JetBrains TeamCity. It might be extremely useful for building custom monitor, triggering builds, cleaning builds queue and many other activities. If you work with JetBrains TeamCity as your Continuous Integration server, you probably know that it has rich REST API that allows querying builds, their configuration, builds queue and also perform CRUD operation on them.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |