1.0.7 • Published 7 years ago
verzasca v1.0.7
verzasca
CLI tool to check teamcity builds add friction if you've got broken builds
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 || exitUsage + 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 teamcityThis 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
ContinueSelecting Stop will exit with code 1, selecting Continue will exit with code 0