| You are viewing documentation of TeamCity 5.x, which is not the most recent released version of TeamCity. Please refer to the listing to choose another version. |
|
This section covers URL patterns that you may use to download build artifacts from outside of TeamCity. You may also download artifacts from TeamCity using Ivy dependency manager. This page covers: Obtaining ArtifactsUse the following patterns to download artifacts: To download artifacts of the latest builds (last finished, successful or pinned), use the following paths: To download artifacts by build id, use: To download artifacts by build number, use: Since TeamCity 5.1 you can use similar pattern to download all artifacts: (BUILD_ID:id can be substituted with ".lastFinished", ".lastSuccessful" or ".lastPinned" without quotes) where
Obtaining Artifacts from an ArchiveTeamCity allows to obtain a file from any zip/jar archive from the build artifacts directory, using one of the following URL patterns: Pattern 1where:
Pattern 2where
Obtaining Artifacts from a Build ScriptIt is often required to download artifacts of some build configuration by tools like wget or another downloader which does not support HTML login page. TeamCity asks for authentication if you accessing artifacts repository. To authenticate correctly from a build script, you have to change URLs (add /httpAuth/ prefix to the URL): Basic authentication is required for accessing artifacts by this URLs with /httpAuth/ prefix. You can use existing TeamCity username and password in basic authentication settings. To enable downloading an artifact with guest user login, you can use either of the following methods:
In this case you will not be asked for authentication. Links to the Artifacts Containing the TeamCity Build NumberYou can use {build.number} as a shortcut to current build number in the artifact file name. Obtaining all artifacts in a single archiveTeamCity allows to download all artifacts packed in a zip archive using any of the following links: where {build.number} and {build.type} denote the build id and build configuration id respectively. See Also:
|