teamcity-latest

command module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2015 License: MIT Imports: 13 Imported by: 0

README

teamcity-latest

A simple REST api for accessing artifacts from the latest builds of teamcity projects. It will transparently use the teamcity rest api to find and retrieve the artifacts.

Usage

Parameters can be specified through command line (--rest-user), environment variable (TEAMCITY_LATEST_REST_USER), or configuration file (see --example). Both --rest-user and --rest-password (or their environment variable/config file equivalents) are required.

A request to teamcity-latest looks like this:

GET http://localhost:8112/buildTypeID/[tag]/artifactName

And the response's body will be that artifact, or an error

If-None-Match

If the client already has a copy of the artifact and only wants to download a newer version, if one exists, the client can send the md5 checksum of its local copy in the If-None-Match header of the request. teamcity-latest will retrieve an artifact called artifactName.md5, which should contain artifactName's md5 sum. If the checksum hasn't changed a 304 Not Modified will be returned, otherwise the new artifact is returned.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL