Skip to content

ryankelley/teamcity-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TeamCity API

Build Status

TeamCity REST API

Installation

npm install teamcity-api

Usage

var TeamCity = require('teamcity').TeamCity

// Set-up authentication
var teamcity = new TeamCity({
  username: 'myUsername',
  password: 'myPassword'
});

// Get some builds
teamcity.builds(1234, function (build) {
  // Do stuff with build
})

Also has support for TeamCity locators

var buildsSinceBuild = teamcity.changesLocator()
  .buildType({id: 'bt9'})
  .sinceChange(5678);

// http://teamcity:8111/app/rest/changes/?locator=buildType:(id:bt9),sinceChange:5678
teamcity.changes(buildsSinceBuild, function (changes) {
  // Do stuff with changes
});

And nested parameters

teamcity.projects('project-one').parameters('param-one', function (value) {
  // Do stuff with value
});

About

Teamcity API for Nodejs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published