Simon, Sorry if this is really basic stuff but I’m just trying to help: Your build job first pulls the sources from Github. Now forget about Github, your build is running on the Jenkins master in the folder
C:\Jenkins\workspace\ I am assuming your batch file commands do what you want. I run nUnit tests not jUnit tests. After your batch file runs, there should be some jUnit test results file somewhere in C:\Jenkins\workspace\ Find them, then add a post-build step to publish them From: jenkinsci-users@googlegroups.com [mailto:jenkinsci-users@googlegroups.com] On Behalf Of simon drake Sent: Friday, March 27, 2015 9:27 AM To: jenkinsci-users@googlegroups.com Subject: Re: Running Github Java Files Thanks rginga, The problem is I don't understand what it's doing so it's difficult to tailor/change it to work how I want :-) Regarding the JUnit test results; there are on github and I know the repo structure; is that what you mean? On Wednesday, March 25, 2015 at 12:32:38 PM UTC, rginga wrote: There is nothing wrong with your approach below. Figure out where the junit test results are being placed and you can use the publish junit plugin to create a nice chart on the build page. From: jenkins...@googlegroups.com<javascript:> [mailto:jenkins...@googlegroups.com<javascript:>] On Behalf Of simon drake Sent: Wednesday, March 25, 2015 7:00 AM To: jenkins...@googlegroups.com<javascript:> Subject: Re: Running Github Java Files Sorry - I've looked into Ant quite a lot this morning but I'm still not 100% what it is or what it does!? So my setup (currently) is as follows: JUnit Code (Eclipse) --> Github (Private Repo) --> Jenkins I have actually been able to get the job to run on Jenkins, through GitHub by doing the following (which I was able to copy and paste but don't understand what it's doing....) Source Code Management: Git Add in URL/Credentials Branches to build: */master Execute Windows batch command: cd C:\Jenkins\workspace\{RepoName}\src set CLASSPATH=.;%CLASSPATH%;C:\SeleniumJars\junit-4.11.jar;C:\SeleniumJars\selenium-server-standalone-2.45.0.jar javac {classname}.java java org.junit.runner.JUnitCore {classname} I now know of Maven/Ant but I don't know a lot about them at all - if there is a better way to integrate these systems I'd be most welcome if someone could tell me :-) -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com<javascript:>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/00e71efe-828c-4775-b81b-7c70e39f7de2%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/00e71efe-828c-4775-b81b-7c70e39f7de2%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com<mailto:jenkinsci-users+unsubscr...@googlegroups.com>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6e77b407-b890-45b1-b109-8feb660fd416%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/6e77b407-b890-45b1-b109-8feb660fd416%40googlegroups.com?utm_medium=email&utm_source=footer>. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E5157D3%40AMERMBX02.PERKINELMER.NET. For more options, visit https://groups.google.com/d/optout.