Socket
Socket
Sign inDemoInstall

teamcity

Package Overview
Dependencies
47
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    teamcity

TeamCity API for NodeJS


Version published
Weekly downloads
87
increased by85.11%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

TeamCity API

Build Status

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

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

// Get some builds
teamcity.builds.get(1234, function (err, build) {
  // Do stuff with 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);

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

// With shortcuts
teamcity.changes.by({
    buildType: { id: 'bt9' },
    sinceChange: 5678
  }, function (changes) {
    // Do stuff with changes
  });

Nested API calls are also supported

// http://teamcity:8111/app/rest/projects/id:project1/buildTypes/id:bt1/builds/user:(id:1)
teamcity.projects.get('project1')
  .buildTypes.get('bt1')
  .builds.by({ user: { id: 1 } })
  // Do stuff with build
});

Keywords

FAQs

Last updated on 09 Mar 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc