Skip to content

findmypast-oss/verzasca

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

verzasca

CLI tool to check teamcity builds add friction if you've got broken builds

npm Build Coveralls License

Installing

Install globally npm install -g verzasca

When would I use this?

Add this as a git pre-hook as part of your git push then you can avoid putting more commits on top of a broken build.

An example pre-push might look a little like this

#!/bin/bash
#allow interactive shell commands
exec < /dev/tty

# check for broken builds
verzasca --url http://teamcity --auth ABCDEFGHIG --builds Build1,Build2 || exit

Usage + Example

Usage: index [options]

Options:

  -h, --help            output usage information
  -V, --version         output the version number
  --url <url>           Set teamcity url
  --builds <builds...>  The builds to check the status of (comma separated)
  --auth <auth>         Basic auth token for teamcity

This is an example command which will result in output like below

verzasca --url http://teamcity --auth ABCDEFGHIG --builds Build1,Build2
================== TEAMCITY STATUS ==================

Build Name: Build1
Status:     SUCCESS
Url:        http://teamcity/viewLog.html?buildId=123&buildTypeId=Build1

Build Name: Build2
Status:     FAILURE
Url:        http://teamcity/viewLog.html?buildId=124&buildTypeId=Build2

=====================================================
There are broken builds, do you want to continue?
=====================================================
 (Use arrow keys)
❯ Stop
  Continue

Selecting Stop will exit with code 1, selecting Continue will exit with code 0