{"action":"created","issue":{"url":"https://api.github.com/repos/bndr/gojenkins/issues/17","repository_url":"https://api.github.com/repos/bndr/gojenkins","labels_url":"https://api.github.com/repos/bndr/gojenkins/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/bndr/gojenkins/issues/17/comments","events_url":"https://api.github.com/repos/bndr/gojenkins/issues/17/events","html_url":"https://github.com/bndr/gojenkins/issues/17","id":136244959,"number":17,"title":"Once I have GetMatrixRuns(), how can I get the test results within?","user":{"login":"eanxgeek","id":1113174,"avatar_url":"https://avatars.githubusercontent.com/u/1113174?v=3","gravatar_id":"","url":"https://api.github.com/users/eanxgeek","html_url":"https://github.com/eanxgeek","followers_url":"https://api.github.com/users/eanxgeek/followers","following_url":"https://api.github.com/users/eanxgeek/following{/other_user}","gists_url":"https://api.github.com/users/eanxgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/eanxgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eanxgeek/subscriptions","organizations_url":"https://api.github.com/users/eanxgeek/orgs","repos_url":"https://api.github.com/users/eanxgeek/repos","events_url":"https://api.github.com/users/eanxgeek/events{/privacy}","received_events_url":"https://api.github.com/users/eanxgeek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bndr/gojenkins/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2016-02-25T01:29:37Z","updated_at":"2016-02-25T17:50:49Z","closed_at":null,"body":"This may be a question the further shows how new I am to Go; however, I have tried a number of things and have not been able to access the contents of GetMatrixRuns()\r\n\r\n```\r\n               matrixRuns, err := build.GetMatrixRuns()\r\n\r\n\t\tif err != nil {\r\n\t\t\tfmt.Println(buildID.Number, \" \", err)\r\n\t\t\tcontinue\r\n\t\t}\r\n\t\tfor _, run := range matrixRuns {\r\n\t\t\t\tfmt.Println(i)\r\n\t\t}\r\n```\r\n\r\nWill return:\r\n> &{0xc820204600 0xc8200e9a00 0xc82000b050  1}\r\n> &{0xc820204d80 0xc8200e9a00 0xc82000b050  1}\r\n> &{0xc820204f00 0xc8200e9a00 0xc82000b050  1}\r\n\r\nI have tried to treat these as builds; however, references like run.Number do not work.\r\n\r\nAny example or suggestions on how best to access the contents?\r\n"},"comment":{"url":"https://api.github.com/repos/bndr/gojenkins/issues/comments/188902248","html_url":"https://github.com/bndr/gojenkins/issues/17#issuecomment-188902248","issue_url":"https://api.github.com/repos/bndr/gojenkins/issues/17","id":188902248,"user":{"login":"eanxgeek","id":1113174,"avatar_url":"https://avatars.githubusercontent.com/u/1113174?v=3","gravatar_id":"","url":"https://api.github.com/users/eanxgeek","html_url":"https://github.com/eanxgeek","followers_url":"https://api.github.com/users/eanxgeek/followers","following_url":"https://api.github.com/users/eanxgeek/following{/other_user}","gists_url":"https://api.github.com/users/eanxgeek/gists{/gist_id}","starred_url":"https://api.github.com/users/eanxgeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eanxgeek/subscriptions","organizations_url":"https://api.github.com/users/eanxgeek/orgs","repos_url":"https://api.github.com/users/eanxgeek/repos","events_url":"https://api.github.com/users/eanxgeek/events{/privacy}","received_events_url":"https://api.github.com/users/eanxgeek/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T17:50:49Z","updated_at":"2016-02-25T17:50:49Z","body":"It's all working now, it appears.\r\n\r\n```\r\n\t\tfor _, run := range matrixRuns {\r\n\t\t\tmatrixResultSet, err := run.GetResultSet()\r\n\t\t\tif err != nil {\r\n\t\t\t\tpanic(err)\r\n\t\t\t}\r\n\t\t\trunBuildNumber := run.GetBuildNumber()\r\n\t\t\tfor _, suite := range matrixResultSet.Suites {\r\n\t\t\t\tfmt.Printf(\"\\n*** %d : %s ***\\n\", runBuildNumber, suite.Name)\r\n\t\t\t\tfmt.Println(\"Fail Count : \", matrixResultSet.FailCount)\r\n\t\t\t\tfor _, c := range suite.Cases {\r\n\t\t\t\t\tfmt.Printf(\"\\n\\n%#v\\n\\n\", c)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//if matrixResultSet != nil {\r\n\t\t\t//\tfmt.Println(run.GetBuildNumber(), \"Pass Count : \", matrixResultSet.PassCount, \r\n\t\t\t//\t\t\t\" Fail Count : \", matrixResultSet.FailCount)\r\n\t\t\t//}\r\n\t\t}\r\n```\r\n\r\nroot cause analysis would probably reveal that my python experience kicked in and I forgot to rebuild my binary after I updated the gojenkins library.\r\n\r\nAnd the fixes you put in today appear to fix an issue I hit last night trying to get Suites and Cases out of a ResultSet.\r\n\r\nThanks!"}}