Report A/B: point to the blue ocean api for the job view

Instead of the legacy view that is useless for pipeline jobs.

Change-Id: I26291db966a6a6fe7f07ee6f312efdfd9ab98e9d
diff --git a/jenkins/lib/vars/reportAB.groovy b/jenkins/lib/vars/reportAB.groovy
index d054a71..9b61e51 100644
--- a/jenkins/lib/vars/reportAB.groovy
+++ b/jenkins/lib/vars/reportAB.groovy
@@ -19,8 +19,11 @@
   if (run == null) {
     return "unkown status"
   }
+  def consoleUrl = "${run.absoluteUrl}console"
+  def name = java.net.URLEncoder.encode(run.fullProjectName, "UTF-8")
+  def runUrl = "/blue/organizations/jenkins/${name}/detail/${run.projectName}/${run.number}/pipeline/"
   def resultImg = "${Jenkins.RESOURCE_PATH}/images/16x16/${run.rawBuild.getIconColor()}.png"
-  return "<a href=\"${run.absoluteUrl}console\"><img src=\"${resultImg}\"/></a> <a href=\"${run.absoluteUrl}\">#${run.number}</a>"
+  return "<a href=\"${consoleUrl}\"><img src=\"${resultImg}\"/></a> <a href=\"${runUrl}\">#${run.number}</a>"
 }
 
 @NonCPS