class TFS::Builds

Constants

STATES

Public Class Methods

find(definition, project, number) click to toggle source

To do an explicit build find, the API requires the definiton the build is from, the project it exists within, and the build number.

TFS::Builds.find("DevBuild", "My New Project", 'DevBuild.3')
# File lib/tfs/builds.rb, line 24
def find(definition, project, number)
  begin
    TFS.builds(definition: definition, project: project, number: number).run.first
  rescue RestClient::ResourceNotFound => e
    raise Queryable::RecordNotFound, "No record found for '#{definition}', '#{project}', #{number}"
  end
end