How do you set the working directory for your Jenkins (formerly known as Hudson) continuous build server to something else than System.getProperty("user.home")+"/.hudson"?
The answer is to set the environment variable JENKINS_HOME to the directory you want to use as Jenkins working directory.
An example could be:
JENKINS_HOME=C:\ci\jenkins\workspace
How to set up jenkins set up in ubuntu machine if a project is set using jbehave ,webdriver,Git? Please advice.
Comment by kashu4055 — March 23, 2013 @ 13:52
Hi!
It all depends so it is difficult to give you an advice. I would, however, start with running Jenkins as a stand alone service on your Ubuntu host.
java -jar jenkins.war
Then I assume that you use a modern build tool like Maven. If you do, create a Maven job. Set it to listen to your Git repo and execute
mvn clean install
whenever it detects a change. Using Maven will abstract away a lot of configuration as long as you follow the Maven way.
Before you create a Jenkins job, make sure you can execute your build directly from Maven.
Good luck!
Thomas
Comment by Thomas Sundberg — March 25, 2013 @ 21:31