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

    • 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

       

          [JENKINS-70046] Using Environment Parameters like BUILD_TAG produces unknown character when passed in as parameter in jobs organized in folders

          William Ballard created issue -
          William Ballard made changes -
          Description Original: Passing in this string to shell execution works:

          ./tosca_execution_client.sh --debug --toscaServerUrl 'http://myurl.corp.pvt' --projectName 'ToscaRepositoryMaster'  *--creator 'PPT KGEN Login '$BUILD_NUMBER* --events '["kGen Login PPT"]' --resultsFileName 'results.xml' --resultsFolderPath '.' --pollingInterval '15'

           

          Passing in this string to shell execution fails:

          ./tosca_execution_client.sh --debug --toscaServerUrl 'http://myurl.corp.pvt' --projectName 'ToscaRepositoryMaster'  *--creator $BUILD_TAG*  --events '["kGen Login PPT"]' --resultsFileName 'results.xml' --resultsFolderPath '.' --pollingInterval '15'

           

          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*

          Maybe something wasn't escaped properly in the folder path response of the environment variable?
          New: Passing in this string to shell execution works:
          {code:java}
          ./tosca_execution_client.sh  --creator 'PPT KGEN Login '$BUILD_NUMBER {code}
          Passing in this string to shell execution fails:
          {code:java}
          ./tosca_execution_client.sh --creator $BUILD_TAG {code}
          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*

          Maybe something wasn't escaped properly in the folder path response of the environment variable?
          William Ballard made changes -
          Description Original: Passing in this string to shell execution works:
          {code:java}
          ./tosca_execution_client.sh  --creator 'PPT KGEN Login '$BUILD_NUMBER {code}
          Passing in this string to shell execution fails:
          {code:java}
          ./tosca_execution_client.sh --creator $BUILD_TAG {code}
          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*

          Maybe something wasn't escaped properly in the folder path response of the environment variable?
          New: Passing in this string to shell execution works:
          {code:java}
          ./tosca_execution_client.sh  --creator 'PPT KGEN Login '$BUILD_NUMBER {code}
          Passing in this string to shell execution fails:
          {code:java}
          ./tosca_execution_client.sh --creator $BUILD_TAG {code}
          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*

          Maybe something wasn't escaped properly in the folder path response of the environment variable?

          Using JOB_NAME caused similar problems

           
          William Ballard made changes -
          Description Original: Passing in this string to shell execution works:
          {code:java}
          ./tosca_execution_client.sh  --creator 'PPT KGEN Login '$BUILD_NUMBER {code}
          Passing in this string to shell execution fails:
          {code:java}
          ./tosca_execution_client.sh --creator $BUILD_TAG {code}
          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*

          Maybe something wasn't escaped properly in the folder path response of the environment variable?

          Using JOB_NAME caused similar problems

           
          New: Passing in this string to shell execution works:
          {code:java}
          ./tosca_execution_client.sh  --creator 'PPT KGEN Login '$BUILD_NUMBER {code}
          Passing in this string to shell execution fails:
          {code:java}
          ./tosca_execution_client.sh --creator $BUILD_TAG {code}
          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*

          Maybe something wasn't escaped properly in the folder path response of the BUILD_TAG environment variable?

          Using JOB_NAME caused similar problems

           
          William Ballard made changes -
          Description Original: Passing in this string to shell execution works:
          {code:java}
          ./tosca_execution_client.sh  --creator 'PPT KGEN Login '$BUILD_NUMBER {code}
          Passing in this string to shell execution fails:
          {code:java}
          ./tosca_execution_client.sh --creator $BUILD_TAG {code}
          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*

          Maybe something wasn't escaped properly in the folder path response of the BUILD_TAG environment variable?

          Using JOB_NAME caused similar problems

           
          New: Passing in this string to shell execution works:
          {code:java}
          ./tosca_execution_client.sh  --creator $BUILD_NUMBER {code}
          Passing in this string to shell execution fails:
          {code:java}
          ./tosca_execution_client.sh --creator $BUILD_TAG {code}
          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

           
          William Ballard made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Fixed but Unreleased [ 10203 ]

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

              Created:
              Updated:
              Resolved: