What is the trick to getting variables from a Build Request? Whether I run the step on the QB Server or a QB Agent the HashMap returned from the getVariables() method always has zero size. For example:
groovy:
import com.pmease.quickbuild.BuildRequest;
import java.util.List;
import java.util.HashMap;
Long configId = 19641;
List<BuildRequest> requestList = system.getBuildEngine().getBuildRequests(configId);
logger.info("size " + String.valueOf(requestList.size()));
for (BuildRequest br : requestList) {
logger.info(br.getId());
HashMap<String, String> brVars = br.getVariables();
logger.info("vars size " + String.valueOf(brVars.size()));
}
Gives the following log output:
11:09:36,659 INFO - size 1
11:09:36,660 INFO - 99bfa36f-cddd-4b61-82e5-afad7e68bb70
11:09:36,660 INFO - vars size 0
Thanks you,
James