Jakob
Jakob

Reputation: 1540

Jenkins workspace settings issues in Windows

I have the latest stable release of Jenkins 2.121.1 installed on my Windows10Pro(x64)-build machine.

Problem no 1:

I can't find the system-wide workspace settings as shown for instance in this thread: How to change workspace and build record Root Directory on Jenkins?

Has this been removed? I only have the workspace settings available for the specific jobs, but I would like to change it on a system-wide-level.

Problem no 2:

When I configure the custom work space for a specific job like so: custom work space

It is supposed to use the name for the item that I've created. Instead it LITERALLY creates a folder with this name, like so: literally

Even though the jenkins documentation says I should use "${ITEM_FULL_NAME}", I've tried different variants (ITEM_FULLNAME) etc.

Upvotes: 0

Views: 2412

Answers (1)

rohit thomas
rohit thomas

Reputation: 2322

It looks like a bug

enter image description here

They mention Under the Advance Tab but I don't find it anywhere either.

Workaround

Modify the jenkins.xml directly from

  <env name="JENKINS_HOME" value="%BASE%"/>

to

<env name="JENKINS_HOME" value="newPath\Jenkins"/>

Considering the 2nd issue you can modify the config.xml

enter image description here

Or

You can set the env variable when you start the jenkins.war

 SET JENKINS_HOME=new\Path\directory
 SET ITEM_ROOTDIR=new\root\directory

 java -jar jenkins.war

You will have to do this each time you start and stop the services

Upvotes: 1

Related Questions