mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-17 05:52:26 +00:00
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
This commit is contained in:
1 parent
2f2e4e103f
commit
e435b7b96d
1 file changed
+5
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user