1.0.7 • Published 6 years ago

verzasca v1.0.7

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
6 years ago

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

1.0.7

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago