-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Major
-
Component/s: logentries-plugin
-
None
Hello Jenkins Team,
We are using the Jenkins Remote Access API to retrieve build logs programmatically using the following endpoint:
/logText/progressiveText?start=<offset>
we observe that the API response contains encoded hyperlink annotations that are not visible in the Jenkins UI console output.
Example from API response:
Started by user [8mha:////4FABP6ytEGGTwPQrpFuinIwqoFNQ4mjz1Yi916Gw6BVwAAAAmB+LCAAAAAAAAP9b85aBtbiIQTGjNKU4P08vOT+vOD8nVc83PGIZ+sxLJE/ZzEvHT94JKizLx0a6BxUmjGOUNodHsLgAzlEgYe/dLi1CL9lMSiouJMACdZ093BAAAA[0mDashboard RB
Loading library pipeline_core@master
Whereas in the Jenkins UI console it appears as:
Started by user <username> Loading library pipeline_core@master Attempting to resolve master from remote references...
From our investigation, these sequences appear to be ConsoleNote annotations embedded in the raw log stream, which are interpreted by the Jenkins UI to render hyperlinks and other metadata.
Questions
- Is this expected behavior for the logText/progressiveText API?
- Is there any supported way to retrieve ** clean console logs (without hyperlink annotations) through the API?
- Would it be possible to provide an API option to return decoded/cleaned console output similar to what is displayed in the Jenkins UI?
This behavior makes it difficult to consume logs programmatically, since we must implement custom filtering to remove these annotation sequences.
Jenkins Version
2.528.3
Steps to Reproduce
- Run any Jenkins pipeline job.
- Access progressive log API:
<jenkins_url>/job/<job_name>/<build_number>/logText/progressiveText?start=0
 # Observe that the response contains encoded ConsoleNote annotations (with hyperlink).
Any clarification or guidance would be appreciated.
Thank you.