Re: Running Github Java Files

2015-03-27 Thread simon drake
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=emailutm_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/6e77b407-b890-45b1-b109-8feb660fd416%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Running Github Java Files

2015-03-27 Thread Ginga, Dick
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.comjavascript: 
[mailto:jenkins...@googlegroups.comjavascript:] On Behalf Of simon drake
Sent: Wednesday, March 25, 2015 7:00 AM
To: jenkins...@googlegroups.comjavascript:
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.comjavascript:.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/00e71efe-828c-4775-b81b-7c70e39f7de2%40googlegroups.comhttps://groups.google.com/d/msgid/jenkinsci-users/00e71efe-828c-4775-b81b-7c70e39f7de2%40googlegroups.com?utm_medium=emailutm_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.commailto: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.comhttps://groups.google.com/d/msgid/jenkinsci-users/6e77b407-b890-45b1-b109-8feb660fd416%40googlegroups.com?utm_medium=emailutm_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.


RE: Running Github Java Files

2015-03-25 Thread Ginga, Dick
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: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of simon drake
Sent: Wednesday, March 25, 2015 7:00 AM
To: jenkinsci-users@googlegroups.com
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-users+unsubscr...@googlegroups.commailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/00e71efe-828c-4775-b81b-7c70e39f7de2%40googlegroups.comhttps://groups.google.com/d/msgid/jenkinsci-users/00e71efe-828c-4775-b81b-7c70e39f7de2%40googlegroups.com?utm_medium=emailutm_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/6C6EE445A6F6CE4E8A0FFB51B071A4E26E5146B1%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.


Re: Running Github Java Files

2015-03-25 Thread simon drake
I've just realised that SCM is GitHub (in your case Perforce) - clearly I 
was in a sleep deprived state last night and was having a stupid moment! 

On Tuesday, March 24, 2015 at 8:34:32 PM UTC, rginga wrote:

 SCM- any Source Code Management system - we use Perforce 

 Ant is a build scripting language. In Eclipse: File-Export-General-Ant 
 Build Files 

 -Original Message- 
 From: jenkins...@googlegroups.com javascript: [mailto:
 jenkins...@googlegroups.com javascript:] On Behalf Of simon drake 
 Sent: Tuesday, March 24, 2015 4:30 PM 
 To: jenkins...@googlegroups.com javascript: 
 Subject: RE: Running Github Java Files 

 Sorry what is SCM? Also I've not used Ant build files - I've heard of 
 maven; are these similar? 

 I'm completely confused now :-) 

 -- 
 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/433bd9fc-41f1-4bf5-b88c-f708d0d009fc%40googlegroups.com.
  

 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/d6dd563b-3aba-4bba-ac87-dab61ffc9a3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Running Github Java Files

2015-03-25 Thread simon drake
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-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/00e71efe-828c-4775-b81b-7c70e39f7de2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Running Github Java Files

2015-03-24 Thread Ginga, Dick
SCM- any Source Code Management system - we use Perforce

Ant is a build scripting language. In Eclipse: File-Export-General-Ant Build 
Files

-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of simon drake
Sent: Tuesday, March 24, 2015 4:30 PM
To: jenkinsci-users@googlegroups.com
Subject: RE: Running Github Java Files

Sorry what is SCM? Also I've not used Ant build files - I've heard of maven; 
are these similar? 

I'm completely confused now :-)

-- 
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/433bd9fc-41f1-4bf5-b88c-f708d0d009fc%40googlegroups.com.
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/6C6EE445A6F6CE4E8A0FFB51B071A4E26E513C8C%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.


RE: Running Github Java Files

2015-03-24 Thread simon drake
I've not heard of source code management; something to research :-) 

I'll give this all a go tomorrow, thank you!

-- 
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/4bf486b7-ab0e-4342-8353-720d7447c98e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RE: Running Github Java Files

2015-03-24 Thread Ginga, Dick
I have done this just once. SCM should not matter. Using Eclipse, export to an 
ant build.xml file. Commit that file.

Pull down test sources build and run tests. These were my command lines:

call C:\apache-ant-1.9.4\bin\ant.bat -file build.xml build

call C:\apache-ant-1.9.4\bin\ant.bat -file build.xml Suite1Runner

and these post-build steps to publish:



-Original Message-
From: jenkinsci-users@googlegroups.com 
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of simon drake
Sent: Tuesday, March 24, 2015 3:23 PM
To: jenkinsci-users@googlegroups.com
Subject: Running Github Java Files

Good afternoon,

Apologies if this is a very Rookie question but I have searched far and wide 
and haven't been able to find anything of use. I am currently writing JUnit 
Selenium WebDriver tests, using Eclipse, and then 'committing' to a private 
Github repository.

I cannot seem to find any instructions/documentation on how to create a Jenkins 
job which will run the required.java files from Github?

If anybody could help I would be most grateful!

Regards,
Si

--
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.commailto:jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/fe7812cf-3450-47f9-a568-36ef9777c767%40googlegroups.com.
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/6C6EE445A6F6CE4E8A0FFB51B071A4E26E513C6D%40AMERMBX02.PERKINELMER.NET.
For more options, visit https://groups.google.com/d/optout.


RE: Running Github Java Files

2015-03-24 Thread simon drake
Sorry what is SCM? Also I've not used Ant build files - I've heard of maven; 
are these similar? 

I'm completely confused now :-)

-- 
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/433bd9fc-41f1-4bf5-b88c-f708d0d009fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.