提交 9adca457 编写于 作者: K kohsuke

improved the message when another build is already in progress.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@3833 71c3de6d-444a-0410-be80-ed276b4c234a
上级 bd3378fc
......@@ -659,8 +659,11 @@ public class Queue extends ResourceController {
if(isBlocked) {
ResourceActivity r = getBlockingActivity(task);
if(r!=null)
if(r!=null) {
if(r==task) // blocked by itself, meaning another build is in progress
return "A build is already in progress";
return "Blocked by "+r.getDisplayName();
}
return task.getWhyBlocked();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册