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: [email protected] 
[mailto:[email protected]] On Behalf Of simon drake
Sent: Wednesday, March 25, 2015 7:00 AM
To: [email protected]
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 
[email protected]<mailto:[email protected]>.
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/6C6EE445A6F6CE4E8A0FFB51B071A4E26E5146B1%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.

Reply via email to