{"action":"created","issue":{"url":"https://api.github.com/repos/avocado-framework/avocado/issues/1403","repository_url":"https://api.github.com/repos/avocado-framework/avocado","labels_url":"https://api.github.com/repos/avocado-framework/avocado/issues/1403/labels{/name}","comments_url":"https://api.github.com/repos/avocado-framework/avocado/issues/1403/comments","events_url":"https://api.github.com/repos/avocado-framework/avocado/issues/1403/events","html_url":"https://github.com/avocado-framework/avocado/issues/1403","id":171898325,"number":1403,"title":"regression: jobscripts plugin called before jsonresult","user":{"login":"dmonakhov","id":466925,"avatar_url":"https://avatars.githubusercontent.com/u/466925?v=3","gravatar_id":"","url":"https://api.github.com/users/dmonakhov","html_url":"https://github.com/dmonakhov","followers_url":"https://api.github.com/users/dmonakhov/followers","following_url":"https://api.github.com/users/dmonakhov/following{/other_user}","gists_url":"https://api.github.com/users/dmonakhov/gists{/gist_id}","starred_url":"https://api.github.com/users/dmonakhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmonakhov/subscriptions","organizations_url":"https://api.github.com/users/dmonakhov/orgs","repos_url":"https://api.github.com/users/dmonakhov/repos","events_url":"https://api.github.com/users/dmonakhov/events{/privacy}","received_events_url":"https://api.github.com/users/dmonakhov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-18T13:16:52Z","updated_at":"2016-08-18T14:06:49Z","closed_at":null,"body":"Before 40.0 jobscripts plugin was the very last plugin which called on job completion.\r\nI use that fact to prepare job report email. This script parsed result.json and create\r\ntest list status.\r\nBut this behaviour changed and now jobscripts result hook called before json, so results.json is not generated yet.\r\n\r\nBTW: It would be nice to have generic email report plugin."},"comment":{"url":"https://api.github.com/repos/avocado-framework/avocado/issues/comments/240733358","html_url":"https://github.com/avocado-framework/avocado/issues/1403#issuecomment-240733358","issue_url":"https://api.github.com/repos/avocado-framework/avocado/issues/1403","id":240733358,"user":{"login":"clebergnu","id":447178,"avatar_url":"https://avatars.githubusercontent.com/u/447178?v=3","gravatar_id":"","url":"https://api.github.com/users/clebergnu","html_url":"https://github.com/clebergnu","followers_url":"https://api.github.com/users/clebergnu/followers","following_url":"https://api.github.com/users/clebergnu/following{/other_user}","gists_url":"https://api.github.com/users/clebergnu/gists{/gist_id}","starred_url":"https://api.github.com/users/clebergnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clebergnu/subscriptions","organizations_url":"https://api.github.com/users/clebergnu/orgs","repos_url":"https://api.github.com/users/clebergnu/repos","events_url":"https://api.github.com/users/clebergnu/events{/privacy}","received_events_url":"https://api.github.com/users/clebergnu/received_events","type":"User","site_admin":false},"created_at":"2016-08-18T14:06:49Z","updated_at":"2016-08-18T14:06:49Z","body":"Hi @dmonakhov, thanks for reporting this.  I understand that this change broke your expectation, but what happened with that change is that the generation of job results were taken out of of the job.  Honestly, I didn't give enough though if the post job plugins (including jobscripts) should run before or after the generation of results.  Initially, it'd seem that post job scripts should be the first thing to run after the job is completed, but I can totally understand your use case and I'll look at generating the results first."}}
{"actor":{"display_login":"clebergnu"}}