Server Side Plugin for TeamCity that allows JSON and JSONP integration for Jenkins/Hudson applications
Java Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
src
.gitignore
README.md
build.xml
get-git-info.sh
tcjson.iml
teamcity-plugin.xml

README.md

Description

tcjson is a Server Side Plugin to add JSON and JSONP support to TeamCity. It is built to emulate the Jenkins/Hudson JSON API.

Currently only supports TeamCity 8.x and up.

Installation

To install, simply copy the tcjson-[version].zip file to your ~/.BuildServer/plugins directory and restart your server.

Usage

Here are some sample HTTP requests.

To see all active builds:

curl -u <username>:<password> http://<teamcity-url>/httpAuth/app/json/api/json

To see all active builds for a given project:

curl -u <username>:<password> http://<teamcity-url>/httpAuth/app/json/<projectId>/api/json

To see all active builds for a list of projects:

curl -u <username>:<password> http://<teamcity-url>/httpAuth/app/json/<projectId1>/<projectId2>/<projectId3>/api/json

Authentication is controlled via the global TeamCity settings. By default it will redirect you to the login page. If you would prefer seeing a proper 401 response code then simply add /httpAuth/ to the front of the URL.