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

Using Environment Parameters like BUILD_TAG produces unknown character when passed in as parameter in jobs organized in folders

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • core

      Passing in this string to shell execution works:

      ./tosca_execution_client.sh  --creator $BUILD_NUMBER 

      Passing in this string to shell execution fails:

      ./tosca_execution_client.sh  --creator $BUILD_TAG 

      This results in an error in the job execution console - hidden illegal characters appear to be in the folder path part of the $BUILD_TAG response:

      2022-11-08 17:00:20 -0600 [ERR] Unknown parameter passed: *Folder-PPT*

       

      The Full project name: PPT Folder/PPT KGEN Login

      It appears spaces in the folder & job name are not escaped properly in the folder path response of the BUILD_TAG environment variable?

      Using JOB_NAME caused similar problems

       

            Unassigned Unassigned
            wpballard William Ballard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: