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

Spaces in JOB_NAME problematic

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • gant-plugin
    • None
    • Windows Server 2008 R2

      I'm having an issue with the environment variable JOB_NAME, I want to get the job name and use it in a report file for gant, the only problem gant fails to continue because an argument -D with any kind of space is invalid.

      Ex: The job name is: Complete violations job
      -f c:\test.groovy
      -D job_name=%JOB_NAME%
      report_violations

      This will fail to continue because job_name has a space and will think that there are more arguments, I was wondering if there was any way the environment variables could be passed maybe with the '\ '.

            Unassigned Unassigned
            schristou88 Steve Christou
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: