Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-53314

how to parameterize default "workspace" folder name, jenkins on Tomcat on windows

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Minor
    • Resolution: Unresolved
    • Component/s: _unsorted
    • Labels:
      None
    • Environment:
       Jenkins v2.121.3
    • Similar Issues:

      Description

      I am using Jenkins on TomCat. 

      I have custom workspace folder set to d:\j which I achieved by setting the variable JENKINS_HOME on Tomcat\conf\context.xml.

       

      `<Environment name="JENKINS_HOME" value="D:\J" type="java.lang.String"/>`

      I want to keep my workspace folder name as short as possible, I would like my workspace folder to be D:\J\W.

      I find the below value D:\J\config.xml,

      <workspaceDir>${JENKINS_HOME}/workspace/${ITEM_FULL_NAME}</workspaceDir>

      Can I somehow pass a parameter name like JENKINS_HOME so that I can achieve my required workspace folder name to D:\J\W?

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              muralidhar Muralidhar Ranganathan
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: