The below call for addShortText used to work for me for adding a quick link to the build test log results, but when I tried to switch to the latest version of Jenkins then the latest groovy postbuild plugin is converting the < into & l t ; (without the spaces of course) and messes up the link. Adding that test log link into the build text is EXTREMELY useful for me, so I'd love some way to tell addShortText to NOT change my < characters.
manager.addShortText("Results file: index.htm, Passed: " + Integer.toString(t.pass) + ", Failed: " + Integer.toString(t.fail))
Originally reported by mathewa, imported from: Can't embed hyperlink into addShortText calls for groovy postbuild plugin
- assignee:
wolfs
- status: Open
- priority: Major
- component(s): groovy-postbuild-plugin
- resolution: Unresolved
- votes: 1
- watchers: 2
- imported: 20251216-225446
Raw content of original issue
The below call for addShortText used to work for me for adding a quick link to the build test log results, but when I tried to switch to the latest version of Jenkins then the latest groovy postbuild plugin is converting the < into & l t ; (without the spaces of course) and messes up the link. Adding that test log link into the build text is EXTREMELY useful for me, so I'd love some way to tell addShortText to NOT change my < characters.
manager.addShortText("Results file: <a href=\"http://jenkinsUrl:8080/job/"+ manager.build.project.name + "/" + manager.build.number + "/artifact/TestCompleteLogs/index.htm\">index.htm</a>, Passed: " + Integer.toString(t.pass) + ", Failed: " + Integer.toString(t.fail))
2 attachments
The below call for addShortText used to work for me for adding a quick link to the build test log results, but when I tried to switch to the latest version of Jenkins then the latest groovy postbuild plugin is converting the < into & l t ; (without the spaces of course) and messes up the link. Adding that test log link into the build text is EXTREMELY useful for me, so I'd love some way to tell addShortText to NOT change my < characters.
manager.addShortText("Results file: index.htm, Passed: " + Integer.toString(t.pass) + ", Failed: " + Integer.toString(t.fail))
Originally reported by mathewa, imported from: Can't embed hyperlink into addShortText calls for groovy postbuild plugin
Raw content of original issue
2 attachments