Skip to content
Access TeamCity build parameters from Node.js
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.editorconfig
.gitignore
CHANGELOG.md
LICENSE
README.md
index.js
package.json

README.md

TeamCity properties

Access TeamCity build parameters from Node.js.

⚠️ Important: from TeamCity build you can only access system.* parameters.

Installation

Using npm:

npm install --save teamcity-properties

Usage

# test.properties
myCompany.project.name = example
var tcPropsFactory = require('teamcity-properties');
var tcProps = tcPropsFactory();

// may fail silently (return undefined)
var agentName = tcProps['agent.name'];

// throws if no such property
var projectName = tcProps.get('myCompany.project.name');

// get properties as namespaces (nested objects);
var asObject = tcProps.namespaces();
asObject.myCompany.project.name; // example

References

LICENSE

MIT

You can’t perform that action at this time.