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

Can't embed hyperlink into addShortText calls for groovy postbuild plugin

XMLWordPrintable

      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))

            wolfs Stefan Wolf
            mathewa Adam Mathews
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: