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

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

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • 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

          Hide
          markewaite Mark Waite added a comment -

          Please don't use the Jenkins issue tracker for questions. The mailing lists and the chat systems are better suited to answering questions.

          Show
          markewaite Mark Waite added a comment - Please don't use the Jenkins issue tracker for questions. The mailing lists and the chat systems are better suited to answering questions.

            People

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

              Dates

              Created:
              Updated:
              Resolved: