History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-4162
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Robin Shen
Reporter: Phong Trinh
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

Groovy script is broken after QB upgrade to v14.

Created: 17/Mar/25 08:39 PM   Updated: 29/Apr/25 02:27 AM
Component/s: None
Affects Version/s: 14.0.27
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
  After I upgraded my QuickBuild server to v14, my following script is broken. It complained about nodeResource.getCount(node):
==========================================================
groovy:
import com.pmease.quickbuild.grid.*;
import com.pmease.quickbuild.util.*;
import com.pmease.quickbuild.entitymanager.ResourceManager;

def nodeResource = ResourceManager.instance.get("my resource");
def nodeAddressList = new ArrayList()

for (node in Grid.instance.getAllNodes()) {
  if (nodeResource.getCount(node) > 1)
    nodeAddressList.add(node.address)
}
return StringUtils.join(nodeAddressList)
=================================================================
 Please advise.

 Thanks,
pdtrinh


 All   Comments   Work Log   Change History      Sort Order:
Change by Robin Shen [29/Apr/25 02:27 AM]
Field Original Value New Value
Status Open [ 1 ] Closed [ 6 ]
Resolution Fixed [ 1 ]