-
New Feature
-
Resolution: Unresolved
-
Minor
-
None
The Problem
When you use a console model encoder, the console will display text with a hyperlink, but the stage logs would show encoded metacharacters in the "Print Message" step name.
Pipeline
import static hudson.console.ModelHyperlinkNote.encodeTo stage('Build') { echo "This is a regular message" echo "This is build ${encodeTo(currentBuild.rawBuild)}" }
Actual
See attachment
[JENKINS-70269] [Pipeline: Stage View] Log messages containing encoded models displayed with special characters in the logs view
Description |
Original:
h3. The Problem
When you use a [console model encoder|https://javadoc.jenkins.io/hudson/console/ModelHyperlinkNote.html#encodeTo%28hudson.model.Run%29], the console will display text with a hyperlink, but the stage logs would show encoded metacharacters. h3. Pipeline {code:groovy} import static hudson.console.ModelHyperlinkNote.encodeTo stage('Build') { echo "This is a regular message" echo "This is build ${encodeTo(currentBuild.rawBuild)}" } {code} h3. Actual _See attachment_ |
New:
h3. The Problem
When you use a [console model encoder|https://javadoc.jenkins.io/hudson/console/ModelHyperlinkNote.html#encodeTo%28hudson.model.Run%29], the console will display text with a hyperlink, but the stage logs would show encoded metacharacters in the "Print Message" step name. h3. Pipeline {code:groovy} import static hudson.console.ModelHyperlinkNote.encodeTo stage('Build') { echo "This is a regular message" echo "This is build ${encodeTo(currentBuild.rawBuild)}" } {code} h3. Actual _See attachment_ |
Assignee | Original: Sam Van Oort [ svanoort ] |