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

瀏覽次數:3 次
跳到第一則未讀訊息

fbelzunc@gmail.com (JIRA)

未讀,
2015年8月13日 凌晨2:29:012015/8/13
收件者: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)

未讀,
2015年8月13日 凌晨2:35:022015/8/13
收件者: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)

未讀,
2015年8月13日 凌晨2:51:012015/8/13
收件者: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)

未讀,
2015年8月13日 上午11:03:022015/8/13
收件者:jenkinsc...@googlegroups.com
Jesse Glick started work on Bug JENKINS-29924
 
Change By: Jesse Glick
Status: Open In Progress

jglick@cloudbees.com (JIRA)

未讀,
2015年8月13日 下午3:01:012015/8/13
收件者:jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

未讀,
2015年9月24日 上午11:00:032015/9/24
收件者: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)

未讀,
2015年9月24日 上午11:00:032015/9/24
收件者: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)

未讀,
2015年11月12日 中午12:02:012015/11/12
收件者: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)

未讀,
2015年11月24日 清晨5:14:032015/11/24
收件者:jenkinsc...@googlegroups.com

frederik.fromm@gmail.com (JIRA)

未讀,
2015年11月26日 凌晨2:06:032015/11/26
收件者:jenkinsc...@googlegroups.com

yoann.dubreuil@gmail.com (JIRA)

未讀,
2015年11月26日 凌晨2:56:022015/11/26
收件者:jenkinsc...@googlegroups.com

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

jglick@cloudbees.com (JIRA)

未讀,
2015年12月11日 上午9:48:072015/12/11
收件者: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)

未讀,
2015年12月11日 上午9:48:082015/12/11
收件者:jenkinsc...@googlegroups.com
Jesse Glick started work on Bug JENKINS-29924
 
Change By: Jesse Glick
Status: Open In Progress

jglick@cloudbees.com (JIRA)

未讀,
2015年12月11日 上午9:48:082015/12/11
收件者:jenkinsc...@googlegroups.com

scm_issue_link@java.net (JIRA)

未讀,
2015年12月13日 下午5:44:032015/12/13
收件者: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)

未讀,
2015年12月13日 下午5:44:032015/12/13
收件者: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)

未讀,
2015年12月14日 凌晨2:32:022015/12/14
收件者:jenkinsc...@googlegroups.com
回覆所有人
回覆作者
轉寄
0 則新訊息