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:
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?