Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karl-sjogren/teamcity-notifier
Node-project that can fire events when a build fails or is fixed in Teamcity
https://github.com/karl-sjogren/teamcity-notifier
Last synced: 5 days ago
JSON representation
Node-project that can fire events when a build fails or is fixed in Teamcity
- Host: GitHub
- URL: https://github.com/karl-sjogren/teamcity-notifier
- Owner: karl-sjogren
- License: mit
- Created: 2014-11-22T18:52:03.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-24T07:00:25.000Z (almost 10 years ago)
- Last Synced: 2024-11-02T04:05:04.698Z (14 days ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
teamcity-notifier
=================Node-project that can fire events when a build fails or is fixed in Teamcity
```js
var TeamCity = require('teamcity-notifier');var tc = new TeamCity({
host: 'teamcity-server',
port: 80,
user: 'username',
password: 'password'
});tc.on('unauthorized', function() {
console.log('Invalid teamcity credentials, stopping');
test.stop();
});tc.on('new-build', function(build) {
console.log('New build started for ' + build.buildTypeId);
});tc.on('finished-build', function(build) {
console.log('Build finished for ' + build.buildTypeId);
});tc.on('error', function(e) {
console.log('An error occured: ' + e.message);
test.stop();
});tc.on('status-changed', function(oldBuild, newBuild) {
if(oldBuild.status === 'SUCCESS' && newBuild.status === 'FAILURE') {
console.log('Build for ' + build.buildTypeId + ' broke!');
}
});tc.on('state-changed', function(oldBuild, newBuild) {
// Well, do something!
});tc.start();
```