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

Key: QB-4118
Type: Improvement Improvement
Status: Open Open
Priority: Major Major
Assignee: Robin Shen
Reporter: rani dharne
Votes: 0
Watchers: 0
Operations

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

Check workflows assigned on node before unauthorizing it

Created: 30/Aug/24 01:24 PM   Updated: 02/Sep/24 11:49 PM
Component/s: None
Affects Version/s: 12.0.12
Fix Version/s: None

Original Estimate: 1 week Remaining Estimate: 1 week Time Spent: Unknown
Environment: Production


 Description  « Hide
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.

 All   Comments   Work Log   Change History      Sort Order:
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.

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.

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"