提交 e435b7b9 编写于 作者: K kohsuke

if a build is disabled, don't do polling.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@2201 71c3de6d-444a-0410-be80-ed276b4c234a
上级 2f2e4e10
......@@ -281,7 +281,11 @@ public abstract class AbstractProject<P extends AbstractProject<P,R>,R extends A
public boolean pollSCMChanges( TaskListener listener ) {
if(scm==null) {
listener.getLogger().println("No SCM");
return false; // no SCM
return false;
}
if(isDisabled()) {
listener.getLogger().println("Build disabled");
return false;
}
try {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册