Anil Satya
2016-08-16 13:59:20 UTC
I have done the required research before adding this topic. Could not find
a proper match, so created new thread.
*This is my Ant Dump task*:
<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.
a proper match, so created new thread.
*This is my Ant Dump task*:
<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.
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/f2890b53-58fc-456b-a10d-5e71c66cabfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/f2890b53-58fc-456b-a10d-5e71c66cabfe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.