Created
May 5, 2015 06:12
-
-
Save michaelrice/27350531db72d40db023 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Set the resource pool | |
| ResourcePool rp | |
| if (build.resourcePool) { | |
| rp = (ResourcePool) new InventoryNavigator(rootFolder).searchManagedEntity("ResourcePool", build.resourcePool) | |
| if (rp == null) { | |
| throw new ProvisioningException( | |
| "Could not find the user-provided ResourcePool " + | |
| "${build.resourcePool}.") | |
| } | |
| } | |
| else { | |
| rp = (ResourcePool) host.parent.resourcePool | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment