<< Back to previous view

[QB-4118] Check workflows assigned on node before unauthorizing it
Created: 30/Aug/24  Updated: 23/Jan/25

Status: Closed
Project: QuickBuild
Component/s: None
Affects Version/s: 12.0.12
Fix Version/s: None

Type: Improvement Priority: Major
Reporter: rani dharne Assigned To: Robin Shen
Resolution: Fixed Votes: 0
Remaining Estimate: 1 week Time Spent: Unknown
Original Estimate: 1 week
Environment: Production


 Description   
Hi Robin,

We want to check the workflows which are configured to run on the node if we try to unauthorized the node from grid.
OR
is it possible to get some kind of notification on error Error allocating node for step 'master': Can not find any node matching specified criteria.
can we add any feature to check first node is active and notify to us before the error displays on configuration.

 Comments   
Comment by Robin Shen [ 31/Aug/24 02:01 AM ]
It is not easy to determine which node will be used beforehand as node can be matched via script or some runtime properties. However at your side if node is designated explicitly via option "on specified build agent", I can come up with a script to list all steps using that.
Comment by rani dharne [ 02/Sep/24 03:44 PM ]
Hi Robin,

Thanks for you response.
That would be great if provide the script to list the steps or configuration using the node.
Comment by Robin Shen [ 02/Sep/24 11:49 PM ]
Please create a configuration to run below groovy script on server:

groovy:
import com.pmease.quickbuild.setting.step.nodematcher.BuildAgentMatcher

for (eachConf in system.configurationManager.getAll()) {
  for (eachEntry in eachConf.getSteps().entrySet()) {
    if ((eachEntry.value.nodeMatcher instanceof BuildAgentMatcher) && eachEntry.value.nodeMatcher.address == "agent_host:8811") {
logger.info(eachConf.pathName + ":" + eachEntry.key);
}
  }
}

You may change "agent_host:8811" to any build agent displayed in page "grid/active nodes"
Generated at Fri Mar 14 12:21:47 UTC 2025 using JIRA 189.