Skip to content
This repository has been archived by the owner on Mar 18, 2024. It is now read-only.

levenlabs/teamcity-latest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

A simple REST api for accessing artifacts from the latest builds of teamcity projects

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages