We have a variable in configurationA called myVar. In the configurationA's variables, myVar is set as a groovy script, so ${groovy:....} which is evaluated when the build runs. So when we run buildX in configuration A, in the buildX, myVar is set to 12345. When we look at the buildX's variables tab (on the left side column under "Overview"), myVar also shows "12345." This is as we expect.
However, if, from configuration B, we call configurationA.getLatestBuild().getVarValue('myVar'), it evaluates configurationA's ${groovy:...} script of myVar instead of giving us the 12345 value from buildX that we are expecting.
We did not have this problem when using QB 6.0.4 (we went from 6.0.4 -> 6.0.16), so can you please tell me if this is a bug in the evaluation or why this has changed? Otherwise, how are we able to get the 12345 value?
Thank you!