{"action":"created","issue":{"url":"https://api.github.com/repos/andreizhuk/tc-ansible-runner/issues/7","labels_url":"https://api.github.com/repos/andreizhuk/tc-ansible-runner/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/andreizhuk/tc-ansible-runner/issues/7/comments","events_url":"https://api.github.com/repos/andreizhuk/tc-ansible-runner/issues/7/events","html_url":"https://github.com/andreizhuk/tc-ansible-runner/issues/7","id":113226706,"number":7,"title":"\"Ansible Log\" tab shows all zeros; need help debugging","user":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-25T13:51:55Z","updated_at":"2015-10-25T16:17:04Z","closed_at":null,"body":"Thank you for writing this and sharing it!!!\r\n\r\nSo I set this up and at least a few times, it seemed to work properly in that it reported reasonable-looking statistics in the \"Ansible Log\" tab.\r\n\r\nBut after tinkering around with my build configuration, I seem to have done something that it didn't like. I don't know what. Here's what I get though. In the \"Ansible Log\" tab:\r\n\r\n<img width=\"644\" alt=\"screen shot 2015-10-25 at 6 49 33 am\" src=\"https://cloud.githubusercontent.com/assets/305268/10715932/a0fe9926-7ae4-11e5-88f8-3686957d45e1.png\">\r\n\r\nIn the \"Build Log\" tab, I see:\r\n\r\n<img width=\"601\" alt=\"screen shot 2015-10-25 at 6 51 02 am\" src=\"https://cloud.githubusercontent.com/assets/305268/10715936/d361ed5a-7ae4-11e5-9ab4-01e8a52bc21f.png\">\r\n\r\nWhich agent logs should I be looking at? Maybe the error message should indicate the specific filename that I should be looking for?\r\n\r\nIn `/home/teamcity/logs/teamcity-agent.log` on the agent, I see:\r\n\r\n```\r\n[2015-10-25 07:01:57,739]   INFO -    jetbrains.buildServer.AGENT - Done publishing artifacts from [/home/teamcity/temp/buildTmp/ansible-run-report.json] to [.teamcity/ansible-run], using 'ArtifactsCachePublisher', total files published: 1\r\n[2015-10-25 07:01:57,747]   INFO -    jetbrains.buildServer.AGENT - Done publishing artifacts from [/home/teamcity/temp/buildTmp/ansible-run-report.json] to [.teamcity/ansible-run], using 'WebPublisher', total files published: 1\r\n[2015-10-25 07:01:57,747]   INFO -    jetbrains.buildServer.AGENT - Done: Publishing files\r\n[2015-10-25 07:01:57,747]   INFO -    jetbrains.buildServer.AGENT - Publishing artifacts process finished\r\n```"},"comment":{"url":"https://api.github.com/repos/andreizhuk/tc-ansible-runner/issues/comments/150938402","html_url":"https://github.com/andreizhuk/tc-ansible-runner/issues/7#issuecomment-150938402","issue_url":"https://api.github.com/repos/andreizhuk/tc-ansible-runner/issues/7","id":150938402,"user":{"login":"msabramo","id":305268,"avatar_url":"https://avatars.githubusercontent.com/u/305268?v=3","gravatar_id":"","url":"https://api.github.com/users/msabramo","html_url":"https://github.com/msabramo","followers_url":"https://api.github.com/users/msabramo/followers","following_url":"https://api.github.com/users/msabramo/following{/other_user}","gists_url":"https://api.github.com/users/msabramo/gists{/gist_id}","starred_url":"https://api.github.com/users/msabramo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/msabramo/subscriptions","organizations_url":"https://api.github.com/users/msabramo/orgs","repos_url":"https://api.github.com/users/msabramo/repos","events_url":"https://api.github.com/users/msabramo/events{/privacy}","received_events_url":"https://api.github.com/users/msabramo/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T16:17:04Z","updated_at":"2015-10-25T16:17:04Z","body":"Looking at https://github.com/andreizhuk/tc-ansible-runner/blob/master/ansible-log-processor/src/main/java/ee/elinyo/teamcity/plugins/ansible/logparser/domain/Task.java#L10, it looks like that could maybe happen if it's not finding a line in the output that matches the regular expression:\r\n\r\n```java\r\n    private static final Pattern TASK_FIRST_LINE_PATTERN = Pattern\r\n            .compile(\"^(TASK|NOTIFIED):\\\\s+\\\\Q[\\\\E(.+)\\\\Q]\\\\E\");\r\n```"}}