Giter Site home page Giter Site logo

tcgithubstatusupdater's Introduction

Simple node.js server designed to accept POSTs from Teamcity server running builds from github and update the corresponding commit with a success/failure status.

This server also uses the MasterStatusServer to keep a monitor of master builds for a repo. If any of these builds are RED the status of a commit for that repo will be red as well.

GitHub Setup

  • Generate an oauth token for a user that can create statuses for the repos you will be using. Directions here
  • Verify the oauthToken is correct in your config.json

Teamcity Setup

  • First make sure you've setup your Teamcity server to use a Git repository from GitHub
  • In cases where a build uses multiple vcs roots, the first vcs root should be for the repository to have the status updated.
  • Next make sure tcUser, tcPwd and tcServer entries in your config.json are correct. (The TC user needs to be able to get extra information about the build that ran)
  • Finally add a Webhook for the project you want to monitor with to point to your node.js server.

Endpoints

  • /gitstatus/init - used to create a pending status for a commit, only sets pending status if no commit status exists yet.
  • /gitstatus/update - updates the status of a commit with success or failure based on the build status.

tcgithubstatusupdater's People

Watchers

James Cloos avatar Daptiv TC avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.