Skip to content

Commit

Permalink
Merge pull request #145 from notruthless/master
Browse files Browse the repository at this point in the history
Fix get_details to compare against task_name
  • Loading branch information
arangamani committed Aug 26, 2014
2 parents c3773ef + 6152063 commit fd11f0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jenkins_api_client/build_queue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ def get_details(task_name)
response_json = @client.api_get_request("/queue")
details = {}
response_json["items"].each do |item|
details = item if item["task"]["name"]
details = item if item["task"]["name"] == task_name
end
details
end
Expand Down

0 comments on commit fd11f0e

Please sign in to comment.