{"action":"created","issue":{"url":"https://api.github.com/repos/jenkinsci/build-blocker-plugin/issues/7","labels_url":"https://api.github.com/repos/jenkinsci/build-blocker-plugin/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/jenkinsci/build-blocker-plugin/issues/7/comments","events_url":"https://api.github.com/repos/jenkinsci/build-blocker-plugin/issues/7/events","html_url":"https://github.com/jenkinsci/build-blocker-plugin/pull/7","id":100699885,"number":7,"title":"[FIXED JENKINS-29924] Items with non-AbstractProjects tasks block the build queue","user":{"login":"fbelzunc","id":3898648,"avatar_url":"https://avatars.githubusercontent.com/u/3898648?v=3","gravatar_id":"","url":"https://api.github.com/users/fbelzunc","html_url":"https://github.com/fbelzunc","followers_url":"https://api.github.com/users/fbelzunc/followers","following_url":"https://api.github.com/users/fbelzunc/following{/other_user}","gists_url":"https://api.github.com/users/fbelzunc/gists{/gist_id}","starred_url":"https://api.github.com/users/fbelzunc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbelzunc/subscriptions","organizations_url":"https://api.github.com/users/fbelzunc/orgs","repos_url":"https://api.github.com/users/fbelzunc/repos","events_url":"https://api.github.com/users/fbelzunc/events{/privacy}","received_events_url":"https://api.github.com/users/fbelzunc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-13T06:33:05Z","updated_at":"2015-08-13T07:33:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jenkinsci/build-blocker-plugin/pulls/7","html_url":"https://github.com/jenkinsci/build-blocker-plugin/pull/7","diff_url":"https://github.com/jenkinsci/build-blocker-plugin/pull/7.diff","patch_url":"https://github.com/jenkinsci/build-blocker-plugin/pull/7.patch"},"body":"When an item which doesn't have an `AbstractProject` task stay in the queue blocks the build queue. This happens specifically with CloudBees proprietary plugin \r\n`long-running-builds`. However, it is in my opinion a bug.\r\n\r\nIt might be perfect not to use `Abstractproject` and instead `Job` so Workflow plugin is integrated. I might work on this, but for the moment my intention is just to fix this bug more than integrate with Workflow.\r\n\r\n```\r\n2015-08-08 13:50:48.211+0200 [id=62]    SEVERE  hudson.triggers.SafeTimerTask#run: Timer task hudson.model.Queue$MaintainTask@423e2af8 failed\r\njava.lang.ClassCastException: com.cloudbees.jenkins.plugins.longrunning.BackgroundTask cannot be cast to hudson.model.AbstractProject\r\n    at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.getBuildBlockerProperty(BuildBlockerQueueTaskDispatcher.java:199)\r\n    at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.canTake(BuildBlockerQueueTaskDispatcher.java:108)\r\n    at hudson.model.Queue$JobOffer.canTake(Queue.java:281)\r\n    at hudson.model.Queue.maintain(Queue.java:1049)\r\n    at hudson.model.Queue$MaintainTask.doRun(Queue.java:2033)\r\n    at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)\r\n    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)\r\n    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)\r\n    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)\r\n    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)\r\n    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\r\n    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\r\n    at java.lang.Thread.run(Thread.java:745)\r\n```\r\n\r\n@reviewbybees"},"comment":{"url":"https://api.github.com/repos/jenkinsci/build-blocker-plugin/issues/comments/130565331","html_url":"https://github.com/jenkinsci/build-blocker-plugin/pull/7#issuecomment-130565331","issue_url":"https://api.github.com/repos/jenkinsci/build-blocker-plugin/issues/7","id":130565331,"user":{"login":"oleg-nenashev","id":3000480,"avatar_url":"https://avatars.githubusercontent.com/u/3000480?v=3","gravatar_id":"","url":"https://api.github.com/users/oleg-nenashev","html_url":"https://github.com/oleg-nenashev","followers_url":"https://api.github.com/users/oleg-nenashev/followers","following_url":"https://api.github.com/users/oleg-nenashev/following{/other_user}","gists_url":"https://api.github.com/users/oleg-nenashev/gists{/gist_id}","starred_url":"https://api.github.com/users/oleg-nenashev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oleg-nenashev/subscriptions","organizations_url":"https://api.github.com/users/oleg-nenashev/orgs","repos_url":"https://api.github.com/users/oleg-nenashev/repos","events_url":"https://api.github.com/users/oleg-nenashev/events{/privacy}","received_events_url":"https://api.github.com/users/oleg-nenashev/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T07:33:53Z","updated_at":"2015-08-13T07:33:53Z","body":":bee: . It makes sense to squash the commits before the merge."}}