{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/accurev-plugin/issues/24","repository_url":"https://api.github.com/repos/jenkinsci/accurev-plugin","labels_url":"https://api.github.com/repos/jenkinsci/accurev-plugin/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/accurev-plugin/issues/24/comments","events_url":"https://api.github.com/repos/jenkinsci/accurev-plugin/issues/24/events","html_url":"https://github.com/jenkinsci/accurev-plugin/pull/24","id":158069615,"number":24,"title":"Added workaround to be able to skip a poll when the build is busy.","user":{"login":"itavero","id":203398,"avatar_url":"https://avatars.githubusercontent.com/u/203398?v=3","gravatar_id":"","url":"https://api.github.com/users/itavero","html_url":"https://github.com/itavero","followers_url":"https://api.github.com/users/itavero/followers","following_url":"https://api.github.com/users/itavero/following{/other_user}","gists_url":"https://api.github.com/users/itavero/gists{/gist_id}","starred_url":"https://api.github.com/users/itavero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itavero/subscriptions","organizations_url":"https://api.github.com/users/itavero/orgs","repos_url":"https://api.github.com/users/itavero/repos","events_url":"https://api.github.com/users/itavero/events{/privacy}","received_events_url":"https://api.github.com/users/itavero/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-06-02T06:41:07Z","updated_at":"2016-08-29T11:08:19Z","closed_at":"2016-08-28T10:17:36Z","pull_request":{"url":"https://api.github.com/repos/jenkinsci/accurev-plugin/pulls/24","html_url":"https://github.com/jenkinsci/accurev-plugin/pull/24","diff_url":"https://github.com/jenkinsci/accurev-plugin/pull/24.diff","patch_url":"https://github.com/jenkinsci/accurev-plugin/pull/24.patch"},"body":"I noticed that no other jobs where being polled when one was already running.\r\nThis was caused by the fact that the poll action for one of the jobs could not acquire a workspace because the build was in progress.\r\nUnfortunately `AbstractProject` does not tell you which project it wants to poll when it calls `requiresWorkspaceForPolling()`.\r\nI've added a workaround by using an `SCMPollListener` that stores the instance of the `AbstractProject`, so I can skip polling in `requiresWorkspaceForPolling()` and `compareRemoteRevisionWith()` when a build is in progress."},"comment":{"url":"https://api.github.com/repos/jenkinsci/accurev-plugin/issues/comments/243095676","html_url":"https://github.com/jenkinsci/accurev-plugin/pull/24#issuecomment-243095676","issue_url":"https://api.github.com/repos/jenkinsci/accurev-plugin/issues/24","id":243095676,"user":{"login":"itavero","id":203398,"avatar_url":"https://avatars.githubusercontent.com/u/203398?v=3","gravatar_id":"","url":"https://api.github.com/users/itavero","html_url":"https://github.com/itavero","followers_url":"https://api.github.com/users/itavero/followers","following_url":"https://api.github.com/users/itavero/following{/other_user}","gists_url":"https://api.github.com/users/itavero/gists{/gist_id}","starred_url":"https://api.github.com/users/itavero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itavero/subscriptions","organizations_url":"https://api.github.com/users/itavero/orgs","repos_url":"https://api.github.com/users/itavero/repos","events_url":"https://api.github.com/users/itavero/events{/privacy}","received_events_url":"https://api.github.com/users/itavero/received_events","type":"User","site_admin":false},"created_at":"2016-08-29T11:08:19Z","updated_at":"2016-08-29T11:08:19Z","body":"@casz Can you also publish a new version to the Jenkins CI plug-in repo?"}}
{"actor":{"display_login":"itavero"}}