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

"ha:////4G0y24vTR..." is seen while fetching job console log with "start" index

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • java-client-api
    • OS: Linux RHEL 7.8
      Jenkins: 2.249.2
      Jenkins Java Api: 0.0.29

       
      Using Jenkins REST API to fetch the job console log. While adding the "start" parameter to fetch log based on the offset, Sometimes, a extra long random string, at least to me, will be added at the beginning of the log content. WHat is this string and how can I separate and remove it from the content? The example is as below where the part "ha:////4G0y24vTRyi8PVe..." is not part of the actual log:
       

      http://localhost:18181/job/my_job1/333/logText/progressiveText?start=8831 
      
      [Pipeline] { 
      [Pipeline] } 
      $ docker stop --time=1 e27f2d5b083decc0ec35355e513c2eb93670fcfcbc1f76740c1a5a075d676478 
      $ docker rm -f e27f2d5b083decc0ec35355e513c2eb93670fcfcbc1f76740c1a5a075d676478 
      [Pipeline] // withDockerContainer [Pipeline] } 
      [Pipeline] // node Stage "Terraform Destroy" skipped due to when conditional 
      [Pipeline] } 
      
      http://localhost:18181/job/my_job1/333/logText/progressiveText?start=8832 
      
      [8mha:////4G0y24vTRyi8PVeV4GnNqRr5FVABXpzobjFozxtf+i5VAAAApx+LCAAAAAAAAP9tjTEOwjAUQ3+LOrAycohUQjAhpq5RFk4QmhDSRv+Xn5R24kRcjTvQUokJD5ZtyXqvNxSR4UTsRGOx9RhrL7rQuymJgbi9BhpEQxdRE0YKVig7KDK2WqqiZGFRlsNKwtpiHSh6dAk2stEPXQaNrjwnnrajhNybOzwhkxM5aU7fMjJsb72JhD/OXwCMXYJ8t5/tMD+LD/hYjrHCAAAA[0m**[Pipeline] { 
      [Pipeline] } 
      $ docker stop --time=1 e27f2d5b083decc0ec35355e513c2eb93670fcfcbc1f76740c1a5a075d676478 
      $ docker rm -f e27f2d5b083decc0ec35355e513c2eb93670fcfcbc1f76740c1a5a075d676478 
      [Pipeline] // withDockerContainer 
      [Pipeline] } [Pipeline] // node Stage "Terraform Destroy" skipped due to when conditional 
      [Pipeline] } 

       

      According to Teminal Escape Code, "ESC [8m", which is the beginning of the unexpected string, will hide the later output and "ESC [0m", which is the end of unexpected string, will reset the previous setting. I parsed the output with "xxd" and didn't find the "ESC" before "[8m".

      Is it possbile that Jenkins forgets to send the "ESC"?

      And what does "ha:////" stands for?

            Unassigned Unassigned
            sleepy_11 sleepy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: