// resolve the relative path against the parent workspace, which needs locking
FilePath baseDir = baseLease.path;
// prepare variables that can be used in the child workspace setting
EnvVars env = getEnvironment(listener);
env.put("COMBINATION",getParent().getCombination().toString('/','/')); // e.g., "axis1/a/axis2/b"
env.put("SHORT_COMBINATION",getParent().getDigestName()); // e.g., "0fbcab35"
env.put("PARENT_WORKSPACE",baseDir.getRemote());
// child workspace need no individual locks, whether or not we use custom workspace
String childWs = mp.getChildCustomWorkspace();
return Lease.createLinkedDummyLease(baseDir.child(env.expand(childWs)),baseLease);
}