TeamCity API
TeamCity REST API
Under Construction
The TeamCity API is pretty big, so this library is largly incomplete.
Installation
npm install teamcity
Usage
var TeamCity = require('teamcity').TeamCity
var teamcity = new TeamCity({
username: 'myUsername',
password: 'myPassword'
});
teamcity.builds.get(1234, function (err, build) {
})l
Also has support for TeamCity locators. You can use the locator classes, or the supplied shortcuts:
var buildsSinceBuild = new BuildLocator()
.buildType({id: 'bt9'})
.sinceChange(5678);
teamcity.changes.by(buildsSinceBuild, function (changes) {
});
teamcity.changes.by({
buildType: { id: 'bt9' },
sinceChange: 5678
}, function (changes) {
});
Nested API calls are also supported
teamcity.projects.get('project1')
.buildTypes.get('bt1')
.builds.by({ user: { id: 1 } })
});