I am running a tomcat server and in it's catalina.sh
I have exported JAVA_OPTS
as follows.
JAVA_OPTS="$JAVA_OPTS -javaagent:/opt/jacoco/lib/jacocoagent.jar=destfile=/tmp/jacoco.exec,append=true,includes=*"
This generates the jacoco.exec file in the same machine in /tmp
folder. How do I generate the exec file on a remote machine for instance a machine that is a jenkins slave so that I can get the coverage via sonar.