Thomas Sundberg

March 7, 2011

Set working directory for your Jenkins continuous build server

This post has been migrated to

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:




  1. 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!

      Comment by Thomas Sundberg — March 25, 2013 @ 21:31

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: