Hello Philippe, Sorry for the late reaction. After changing the wildcard to a real filename works. The strange thing is that on my Windows machine the wildcard did work.
Regards, Peter Op 7-3-2017 om 21:03 schreef Philippe Mouawad: > Hello, > -g should point to a file , not to an *.jtl file. > Also ensure jtl file is CSV. > > You can read this: > - jmeter.apache.org/usermanual/generating-dashboard.html > > Regards > > On Tue, Mar 7, 2017 at 9:28 AM, <[email protected]> wrote: > >> Hello all, >> >> I'm trying to generate the JMeter dashboard by Maven with an ant task: >> ====== >> <plugin> >> <artifactId>maven-antrun-plugin</artifactId> >> <executions> >> <execution> >> <phase>pre-site</phase> >> <configuration> >> <tasks> >> <mkdir >> dir="${basedir}/target/jmeter/results/dashboard" /> >> <copy >> file="${basedir}/src/test/resources/reportgenerator.properties" >> >> tofile="${basedir}/target/jmeter/bin/reportgenerator.properties" /> >> <copy >> todir="${basedir}/target/jmeter/bin/report-template"> >> <fileset >> dir="${basedir}/src/test/resources/report-template" /> >> </copy> >> <java >> jar="${basedir}/target/jmeter/bin/ApacheJMeter-3.0.jar" >> fork="true"> >> <arg value="-g" /> >> <arg >> value="${basedir}/target/jmeter/results/*.jtl" /> >> <arg value="-o" /> >> <arg >> value="${basedir}/target/jmeter/results/dashboard/" /> >> <arg value="-j" /> >> <arg >> value="${basedir}/target/jmeter/results/jmeter-dashboard.log" /> >> </java> >> </tasks> >> </configuration> >> <goals> >> <goal>run</goal> >> </goals> >> </execution> >> </executions> >> </plugin> >> ====== >> >> On my Windows system the dashboard is created, but on the Jenkins >> buildserver (its a Linux machine) it complains about the wildcard. >> ====== >> [INFO] Executing tasks >> [mkdir] Created dir: /home/glassfish/.jenkins/works >> pace/ABD/target/jmeter/results/dashboard >> [copy] Copying 1 file to /home/glassfish/.jenkins/works >> pace/ABD/target/jmeter/bin >> [copy] Copying 696 files to /home/glassfish/.jenkins/works >> pace/ABD/target/jmeter/bin/report-template >> [java] Writing log file to: /home/glassfish/.jenkins/works >> pace/ABD/target/jmeter/results/jmeter-dashboard.log >> [java] An error occurred: Cannot read test results file : >> /home/glassfish/.jenkins/workspace/ABD/target/jmeter/results/*.jtl >> [java] Java Result: 1 >> [INFO] Executed tasks >> ====== >> >> Does anyone a clue for me? >> >> Thanks, >> Peter Peterse >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > -- Met vriendelijke groet, Peter Peterse --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
