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.

How to read variables of Triggered Build from parent build? #120

Shobha ·

How to read variables of Triggered Build from parent build?

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

This can be achieved with groovy script like below:

groovy:
import com.pmease.quickbuild.entitymanager.BuildManager;

// Assume the step triggering child build is previous step of the step executing this groovy script
def childBuildId = step.previousExecutedSibling.runtime.customData; 
def childBuild = BuildManager.instance.load(childBuildId);
logger.info(childBuild.getVarValue("varName"));