{"action":"closed","issue":{"url":"https://api.github.com/repos/mozilla/mozdownload/issues/354","repository_url":"https://api.github.com/repos/mozilla/mozdownload","labels_url":"https://api.github.com/repos/mozilla/mozdownload/issues/354/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/mozdownload/issues/354/comments","events_url":"https://api.github.com/repos/mozilla/mozdownload/issues/354/events","html_url":"https://github.com/mozilla/mozdownload/issues/354","id":128828276,"number":354,"title":"Get daily, tinderbox, and try builds by revision","user":{"login":"whimboo","id":129603,"avatar_url":"https://avatars.githubusercontent.com/u/129603?v=3","gravatar_id":"","url":"https://api.github.com/users/whimboo","html_url":"https://github.com/whimboo","followers_url":"https://api.github.com/users/whimboo/followers","following_url":"https://api.github.com/users/whimboo/following{/other_user}","gists_url":"https://api.github.com/users/whimboo/gists{/gist_id}","starred_url":"https://api.github.com/users/whimboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whimboo/subscriptions","organizations_url":"https://api.github.com/users/whimboo/orgs","repos_url":"https://api.github.com/users/whimboo/repos","events_url":"https://api.github.com/users/whimboo/events{/privacy}","received_events_url":"https://api.github.com/users/whimboo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"whimboo","id":129603,"avatar_url":"https://avatars.githubusercontent.com/u/129603?v=3","gravatar_id":"","url":"https://api.github.com/users/whimboo","html_url":"https://github.com/whimboo","followers_url":"https://api.github.com/users/whimboo/followers","following_url":"https://api.github.com/users/whimboo/following{/other_user}","gists_url":"https://api.github.com/users/whimboo/gists{/gist_id}","starred_url":"https://api.github.com/users/whimboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whimboo/subscriptions","organizations_url":"https://api.github.com/users/whimboo/orgs","repos_url":"https://api.github.com/users/whimboo/repos","events_url":"https://api.github.com/users/whimboo/events{/privacy}","received_events_url":"https://api.github.com/users/whimboo/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mozilla/mozdownload/milestones/23","html_url":"https://github.com/mozilla/mozdownload/milestones/1.20","labels_url":"https://api.github.com/repos/mozilla/mozdownload/milestones/23/labels","id":1372567,"number":23,"title":"1.20","description":"","creator":{"login":"whimboo","id":129603,"avatar_url":"https://avatars.githubusercontent.com/u/129603?v=3","gravatar_id":"","url":"https://api.github.com/users/whimboo","html_url":"https://github.com/whimboo","followers_url":"https://api.github.com/users/whimboo/followers","following_url":"https://api.github.com/users/whimboo/following{/other_user}","gists_url":"https://api.github.com/users/whimboo/gists{/gist_id}","starred_url":"https://api.github.com/users/whimboo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whimboo/subscriptions","organizations_url":"https://api.github.com/users/whimboo/orgs","repos_url":"https://api.github.com/users/whimboo/repos","events_url":"https://api.github.com/users/whimboo/events{/privacy}","received_events_url":"https://api.github.com/users/whimboo/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":14,"state":"open","created_at":"2015-10-23T15:13:58Z","updated_at":"2016-02-10T20:01:21Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-01-26T14:01:24Z","updated_at":"2016-02-10T20:01:21Z","closed_at":"2016-02-10T20:01:21Z","body":"A requested feature for a long time. Finally with the help of Treeherder we can get this implemented. It's not that easy but with a couple of API requests it can be done. So here an example for one of the latest beta-releases which happened to be:\r\n\r\nhttps://treeherder.mozilla.org/#/jobs?repo=mozilla-beta&revision=5c042dab34a2\r\n\r\nSteps to do:\r\n\r\n* Get the resultset for the given revision: https://treeherder.mozilla.org/api/project/mozilla-beta/resultset/?revision=5c042dab34a257de85b7eaf2bc81aaad16b8a1b0\r\n\r\n* Retrieve the option collection hash to use: https://treeherder.mozilla.org/api/optioncollectionhash/\r\n\r\n* With the `results[0]['id']` (2441562) found you can query for all the jobs run for this particular changeset. What we want is to apply filters to reduce the time until we got all results. Keep in mind that we need a hash for Treeherder supported platforms and similar: https://treeherder.mozilla.org/api/project/mozilla-beta/jobs/?result_set_id=2441562&count=2000&exclusion_profile=false&job_type_name=Build&platform=linux32&option_collection_hash=102210fe594ee9b33d82058545b1ed14f4c8206e \r\n\r\n* With the `results[0]['id']` (737977) found you can query for the artifacts of the job: https://treeherder.mozilla.org/api/project/mozilla-beta/artifact/?job_id=737977&name=Job+Info&type=json\r\n\r\n* We can use the log URL strip of the filename and take that as base path for all the files contained in this folder."}}