Your browser was unable to load all of the resources. They may have been blocked by your firewall, proxy or browser configuration.
Press Ctrl+F5 or Ctrl+Shift+R to have your browser try again.

List of used machinesets #4170

Mmathue ·

Hello,

Is there a way to get a list of machines used for a specific Job.

for example, I have a configuration that has 30 steps triggering different stuff and so on. I want to add promotion where if the job was successful to trigger another configuration that will list the build machines that were used in all steps.

Thank you,

  • replies 4
  • views 29
  • stars 0
robinshen ADMIN ·

Below script will print all nodes used to run a build:

groovy:
for (step in build.steps) {
  logger.info(step.nodeAddress);
}
Mmathue ·

is it possible to list them for the promoted build?

Mmathue ·

A build from another configuration

robinshen ADMIN ·

Yes you can, just load that build with build id, and call the same:

groovy:
for (step in system.buildManager.load(buildId).steps) {
  logger.info(step.nodeAddress);
}