class Artifactory::Resource::Build
def find(name, number, options = {})
-
(Resource::Build, nil)
-
Options Hash:
(**options)
-
:client
(Artifactory::Client
) --
Parameters:
-
options
(Hash
) -- -
number
(String
) -- -
name
(String
) --
Other tags:
- Example: Find data for a build of a component -
def find(name, number, options = {}) client = extract_client!(options) response = client.get("/api/build/#{url_safe(name)}/#{url_safe(number)}") from_hash(response["buildInfo"], client: client) rescue Error::HTTPError => e raise unless e.code == 404 nil end