Build Artifacts Search

JFrog REST APIs

Products
JFrog Xray
Content Type
REST API
ft:sourceType
Paligo

Description: Find all the artifacts related to a specific build.

Notes: Requires Artifactory Pro

Since: 2.6.5

Security: Requires a privileged user (can be anonymous)

Usage: POST /api/search/buildArtifacts

Consumes: application/json (application/vnd.org.jfrog.artifactory.search.BuildArtifactsRequest+json)

Sample Usage:

POST /api/search/buildArtifacts
{
 +"buildName": "build-name" // The build name for search by
 +"buildNumber": "15" // The build number to search by, can be LATEST to search for the latest build number
 -"buildStatus": "Released" // Optionally search by latest build status (e.g: "Released") 
 -"repos": ["libs-release-local,ext-release-local"] // Optionally refine search for specific repos, omit to search within all repositories
 -"mappings": [ // Optionally refine the search by providing a list of regexp patterns to search by
        {
                "input": "(.+)-sources.jar"
        },
        {
                "input": "(.+)-javadoc.jar"
        }
 ]
}

Produces: application/json (application/vnd.org.jfrog.artifactory.search.BuildArtifactsSearchResult+json)

Sample Output:

POST /api/search/buildArtifacts
{
"results" : [
    {
        "downloadUri": "http://localhost:8081/artifactory/libs-release-local/org/acme/lib/ver/lib-sources.jar"
    },{
        "downloadUri": "http://localhost:8081/artifactory/ext-release-local/org/acme/lib/ver/lib-ver-javadoc.jar"
    }
]
}