Skip to content
Browse files
[FIXED JENKINS-31219] A CloudProvisioningListener can prevent provisi…
…oning of all clouds instead of just the targeted cloud

(cherry picked from commit cc932c4)
  • Loading branch information
stephenc authored and olivergondza committed Feb 3, 2016
1 parent df2b7d9 commit de9835a6797bc7afef9b1605fa21ae0dcf3c6d37
Showing with 3 additions and 4 deletions.
  1. +3 −4 core/src/main/java/hudson/slaves/
@@ -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 de9835a

Please sign in to comment.