<target name="dump-now" depends="init">
<echo message="entering dump part" />
<jacoco:dump address="MyServer" port="6090" dump="true" destfile="${coverage.dir}/lmjacoco.exec" retryCount="10" />
</target>
This is my jenkins JAVA_ARG setup:
JAVA_OPTS=-javaagent:/tools/jacoco-0.7.6/lib/jacocoagent.jar=includes=com.manh.*:com.logistics.*,destfile=/builds/v2017/lm/deployments/lm/tomcat-ora/distribution/coverage/lmjacoco.exec,output=tcpserver
My tomcat application is started on port: 26000.
The TCP port mentioned in the ant task isn't being used by any other process. The below is the error available in the jenkins console (Edited to remove actual server name and IP address):
generate-report:
[echo] Generating xml report....
init:
dump-now:
[echo] entering dump part
[jacoco:dump] Connecting to MyServer:6090
[jacoco:dump] Connection refused
Is there a problem with this setup. I've also tried the alternative where I give the address and TCP port in the Jenkins JAVA_OPTS itself. Please help.
No session information available.
No execution data available.
Also, the jenkins console had this:
Looks like I've come very close and I'm doing some small mistake. Can you please help me out?