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

CrossReferencing workspace variable in environment block removes slashes from workspace dir

XMLWordPrintable

      environment

        {   

          3PP="${WORKSPACE}/3pp"

      }

       

      when you do echo of 3pp variable in step

      echo "3pp is ${3PP}"

      shows output
      3pp is C:Program Files (x86)Jenkinsworkspacepipelinetest-prashant/3pp

       

       

      Please let me know if there is any workaround to create env variables that can be later referenced by batch files.

            abayer Andrew Bayer
            prashant1_sharma Prashant Sharma
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: