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

Escape absolute path contained in globaly exposed variable $WORKSPACE


    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • Jenkins ver. 1.599
      CentOS 7

      Hope I am not asking for something that has already been suggested.

      I think it would be nice to have spaces in $WORKSPACE variable escaped. This would make build scripts more readable with default configuration.

      Just to clarify I am talking about the variable that is listed at jenkins.example.com/env-vars.html
      The one that is described as (The absolute path of the directory assigned on the master node for Jenkins to store data.)
      If a job has a name that has spaces in it then the value of that variable with default config would be:
      /var/lib/jenkins/workspace/Name of Job
      I am suggesting it to be:
      /var/lib/jenkins/workspace/Name\ of\ Job

      I have read this issue report:
      And also seen the answers given in there.
      I agree with the decision made there.

      I would still like to see if this idea floats.

            Unassigned Unassigned
            janno Janno Jõgeva
            0 Vote for this issue
            2 Start watching this issue