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.

Passing variable from Child build to parent #4131

Mmathue ·

Is it possible to pass variable value from child build to parent, not from the configuration itself as it will have race condition but from builds themselves?

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

You may read back variables of child build from parent build when child build is finished. To do it:

groovy:
def childBuildId = steps.get("master>the step to trigger child build").runtime.customData;
system.buildManager.load(childBuildId).getVarValue("someVar");