Thomas Sundberg

March 7, 2011

Set working directory for your Jenkins continuous build server

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

About these ads

2 Comments »

  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!
      Thomas

      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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Connecting to %s

Theme: Customized Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 41 other followers

%d bloggers like this: