Sunil Rk
Sunil Rk

Reputation: 1029

Custom workspace in jenkins

  1. I am not getting the check box to select custom workspace in Jenkins(ver. 1.465) while configuring the job, is there any plugin to get it?

  2. After getting check box how to configure (path of workspace)?

Upvotes: 23

Views: 103715

Answers (5)

mikhail_b
mikhail_b

Reputation: 970

A couple of images to clarify how to configure a custom workspace directory.

The "Advanced" button to click to show the "Workspace Root Directory" option:

The "Advanced" button to click to show the "Workspace Root Directory" option

Use a root directory with ${ITEM_FULLNAME} to put your projects' workspaces under a custom directory: Use a root directory with <code>${ITEM_FULLNAME}</code> to put your projects' workspaces under a custom directory

Upvotes: 6

purav
purav

Reputation: 141

in the general tab, when you go to the "advanced options" , you will see the "custom workspace" option

Upvotes: 14

coz
coz

Reputation: 486

Maybe this answer comes a little bit too late but, anyway:

  • Jenkins v2.13, works on v1.652
  • Maven project
  • Build section
  • Click on Advanced button on the right side of the page
  • Check "Use custom workspace"
  • Fill in the path to the desired folder

Supports parameters too: ${SVN_BRANCH}

Upvotes: 3

Mayank Raipure
Mayank Raipure

Reputation: 1803

If you want to use custom workspace choose freestyle or multi-configuration option, Custom workspace option is not supported in maven-project(From new item)

Upvotes: 3

Emil Salageanu
Emil Salageanu

Reputation: 1057

I had the same problem. For a maven build, the option "Use custom workspace" is in Build Section ("Advanced" button)

Upvotes: 16

Related Questions