[JIRA] [build-blocker-plugin] (JENKINS-29924) Items with non-AbstractProjects tasks block the build queue

3 views
Skip to first unread message

fbelzunc@gmail.com (JIRA)

unread,
Aug 13, 2015, 2:29:01 AM8/13/15
to jenkinsc...@googlegroups.com
Félix Belzunce Arcos created an issue
 
Jenkins / Bug JENKINS-29924
Items with non-AbstractProjects tasks block the build queue
Issue Type: Bug Bug
Assignee: Félix Belzunce Arcos
Components: build-blocker-plugin
Created: 13/Aug/15 6:28 AM
Environment: build-blocker-plugin-1.7.1
Priority: Major Major
Reporter: Félix Belzunce Arcos

When an item which doesn't have an AbstractProject task is in the queue block the build queue. This happen specifically with CloudBees proprietary plugin
long-running-builds. However, it is in my opinion a bug.

It might be perfect not to use Abstractproject and better use Job instead 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.

2015-08-08 13:50:48.211+0200 [id=62]    SEVERE  hudson.triggers.SafeTimerTask#run: Timer task hudson.model.Queue$MaintainTask@423e2af8 failed
java.lang.ClassCastException: com.cloudbees.jenkins.plugins.longrunning.BackgroundTask cannot be cast to hudson.model.AbstractProject
    at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.getBuildBlockerProperty(BuildBlockerQueueTaskDispatcher.java:199)
    at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.canTake(BuildBlockerQueueTaskDispatcher.java:108)
    at hudson.model.Queue$JobOffer.canTake(Queue.java:281)
    at hudson.model.Queue.maintain(Queue.java:1049)
    at hudson.model.Queue$MaintainTask.doRun(Queue.java:2033)
    at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

fbelzunc@gmail.com (JIRA)

unread,
Aug 13, 2015, 2:35:02 AM8/13/15
to jenkinsc...@googlegroups.com
Félix Belzunce Arcos updated an issue
Change By: Félix Belzunce Arcos
When an item which doesn't have an AbstractProject task  is  stayed  in the queue  block  blocking  the build queue. This happen specifically with CloudBees proprietary plugin 

 long-running-builds. However, it is in my opinion a bug.

It might be perfect not to use Abstractproject and better use Job instead 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. 

{code:java}

2015-08-08 13:50:48.211+0200 [id=62]    SEVERE  hudson.triggers.SafeTimerTask#run: Timer task hudson.model.Queue$MaintainTask@423e2af8 failed
java.lang.ClassCastException: com.cloudbees.jenkins.plugins.longrunning.BackgroundTask cannot be cast to hudson.model.AbstractProject
    at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.getBuildBlockerProperty(BuildBlockerQueueTaskDispatcher.java:199)
    at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.canTake(BuildBlockerQueueTaskDispatcher.java:108)
    at hudson.model.Queue$JobOffer.canTake(Queue.java:281)
    at hudson.model.Queue.maintain(Queue.java:1049)
    at hudson.model.Queue$MaintainTask.doRun(Queue.java:2033)
    at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
{code}

fbelzunc@gmail.com (JIRA)

unread,
Aug 13, 2015, 2:51:01 AM8/13/15
to jenkinsc...@googlegroups.com
Félix Belzunce Arcos updated an issue
When an item which doesn't have an AbstractProject task  stayed in  stay on  the queue  blocking  blocks  the build queue. This  happen  happens  specifically with CloudBees proprietary plugin 

 long-running-builds. However, it is in my opinion a bug.

It might be perfect not to use Abstractproject and better use Job instead 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. 

{code:java}
2015-08-08 13:50:48.211+0200 [id=62]    SEVERE  hudson.triggers.SafeTimerTask#run: Timer task hudson.model.Queue$MaintainTask@423e2af8 failed
java.lang.ClassCastException: com.cloudbees.jenkins.plugins.longrunning.BackgroundTask cannot be cast to hudson.model.AbstractProject
    at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.getBuildBlockerProperty(BuildBlockerQueueTaskDispatcher.java:199)
    at hudson.plugins.buildblocker.BuildBlockerQueueTaskDispatcher.canTake(BuildBlockerQueueTaskDispatcher.java:108)
    at hudson.model.Queue$JobOffer.canTake(Queue.java:281)
    at hudson.model.Queue.maintain(Queue.java:1049)
    at hudson.model.Queue$MaintainTask.doRun(Queue.java:2033)
    at hudson.triggers.SafeTimerTask.run(SafeTimerTask.java:54)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:304)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)
{code}

jglick@cloudbees.com (JIRA)

unread,
Aug 13, 2015, 11:03:02 AM8/13/15
to jenkinsc...@googlegroups.com
Jesse Glick started work on Bug JENKINS-29924
 
Change By: Jesse Glick
Status: Open In Progress

jglick@cloudbees.com (JIRA)

unread,
Aug 13, 2015, 3:01:01 PM8/13/15
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Sep 24, 2015, 11:00:03 AM9/24/15
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon resolved as Fixed
Change By: SCM/JIRA link daemon
Status: In Progress Resolved
Resolution: Fixed

scm_issue_link@java.net (JIRA)

unread,
Sep 24, 2015, 11:00:03 AM9/24/15
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-29924
 
Re: Items with non-AbstractProjects tasks block the build queue

Code changed in jenkins
User: Frederik Fromm
Path:
src/main/java/hudson/plugins/buildblocker/BuildBlockerQueueTaskDispatcher.java
http://jenkins-ci.org/commit/build-blocker-plugin/4736acca0f441238d1c634218463452cb5d7a65c
Log:
Merge pull request #7 from fbelzunc/long-running-builds

[FIXED JENKINS-29924] Items with non-AbstractProjects tasks block the build queue

Compare: https://github.com/jenkinsci/build-blocker-plugin/compare/042930e2b7b9...4736acca0f44

jenkins@mockies.de (JIRA)

unread,
Nov 12, 2015, 12:02:01 PM11/12/15
to jenkinsc...@googlegroups.com

When will 1.7.2 be released? Is there something else missing? I'm currently testing the snapshot and everything works as expected so far.

yoann.dubreuil@gmail.com (JIRA)

unread,
Nov 24, 2015, 5:14:03 AM11/24/15
to jenkinsc...@googlegroups.com

frederik.fromm@gmail.com (JIRA)

unread,
Nov 26, 2015, 2:06:03 AM11/26/15
to jenkinsc...@googlegroups.com

yoann.dubreuil@gmail.com (JIRA)

unread,
Nov 26, 2015, 2:56:02 AM11/26/15
to jenkinsc...@googlegroups.com

No worries! Thank you for releasing, 1.7.2 is now in the update center

jglick@cloudbees.com (JIRA)

unread,
Dec 11, 2015, 9:48:07 AM12/11/15
to jenkinsc...@googlegroups.com
Jesse Glick reopened an issue
 

Still broken, updated fix under review.

Change By: Jesse Glick
Resolution: Fixed
Status: Resolved Reopened

jglick@cloudbees.com (JIRA)

unread,
Dec 11, 2015, 9:48:08 AM12/11/15
to jenkinsc...@googlegroups.com
Jesse Glick started work on Bug JENKINS-29924
 
Change By: Jesse Glick
Status: Open In Progress

jglick@cloudbees.com (JIRA)

unread,
Dec 11, 2015, 9:48:08 AM12/11/15
to jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

unread,
Dec 13, 2015, 5:44:03 PM12/13/15
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Frederik Fromm
Path:

pom.xml
src/main/java/hudson/plugins/buildblocker/BlockingJobsMonitor.java
src/main/java/hudson/plugins/buildblocker/BuildBlockerQueueTaskDispatcher.java
src/test/java/hudson/plugins/buildblocker/BlockingJobsMonitorTest.java
http://jenkins-ci.org/commit/build-blocker-plugin/d377787f1d09518c8e6feabb49eba4b86802dabb
Log:
Merge pull request #8 from fbelzunc/workflow-compatilble

[FIXED JENKINS-29924] Transform AbstractProject into Job for Workflow compatibility

Compare: https://github.com/jenkinsci/build-blocker-plugin/compare/f6f4954d0e8e...d377787f1d09

scm_issue_link@java.net (JIRA)

unread,
Dec 13, 2015, 5:44:03 PM12/13/15
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon resolved as Fixed
Change By: SCM/JIRA link daemon
Status: In Progress Resolved
Resolution: Fixed

fbelzunc@gmail.com (JIRA)

unread,
Dec 14, 2015, 2:32:02 AM12/14/15
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages