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.

run configuration for build from another configuration #4172

Mmathue ·

Hello,

I have a configuration "A" that is triggered by promotion configuration "B". the configuration is to list the machines that are used in specific steps
groovy:
for (step in build.steps) {
logger.info(step.nodeAddress);
}

is it possible to get the steps from the promoted build in configuration "B"?

  • replies 1
  • views 864
  • stars 0
robinshen ADMIN ·

So you click the promote button in a build (assume build-B) of configuration "B", and it creates another build (assume build-A) in configuration "A". Now you want build-A to list all agents used in build-B? If so, run below groovy script in build-A:

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