Hello. Robin.
I made a step with below script to get build info from another QBM.
groovy:
import com.pmease.quickbuild.QuickbuildException
import com.pmease.quickbuild.plugin.report.engine.util.XMLHelper
qbm = "https://qbbuildsite.net"
build_id = 123456789
def cmd = "curl -u ${vars.get("ID")}:${vars.get("PW")} " + qbm + "/rest/builds/" + build_id
XMLHelper.readXML(util.readOutput(cmd));
But it has got below error because of special characters which made by the commit info of repository
Step 'master>xml parser' is failed: java.lang.RuntimeException: org.dom4j.DocumentException: Error on line 167 of document : Character reference "&# Nested exception: Character reference "&#
at com.google.common.base.Throwables.propagate(Throwables.java:160)
at com.pmease.quickbuild.plugin.report.engine.util.XMLHelper.readXML(XMLHelper.java:247)
at com.pmease.quickbuild.plugin.report.engine.util.XMLHelper$readXML.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:42)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)
So it has no problem in the cmd window and pipelines but "readXML" function has a issue for it.
Do you have idea to resolve this issue?