Skip to content
Permalink
Browse files
Merge pull request #1891 from stephenc/jenkins-31219
[FIXED JENKINS-31219] A CloudProvisioningListener can prevent provisi…
  • Loading branch information
stephenc committed Dec 15, 2015
2 parents 8c8bbbb + cc932c4 commit 9339a34967dd095ba6fbaba40b41e33835fde866
Showing with 3 additions and 4 deletions.
  1. +3 −4 core/src/main/java/hudson/slaves/NodeProvisioner.java
@@ -690,11 +690,10 @@ we take the current snapshot value, and we take the current exponential moving a

int workloadToProvision = (int) Math.round(Math.floor(excessWorkload + m));

for (CloudProvisioningListener cl : CloudProvisioningListener.all())
// consider displaying reasons in a future cloud ux
{
for (CloudProvisioningListener cl : CloudProvisioningListener.all()) {
if (cl.canProvision(c, state.getLabel(), workloadToProvision) != null) {
break CLOUD;
// consider displaying reasons in a future cloud ux
continue CLOUD;
}
}

0 comments on commit 9339a34

Please sign in to comment.