From 1f397106f905825a507e28a3e5603405422e7218 Mon Sep 17 00:00:00 2001 From: Mirko Friedenhagen Date: Thu, 14 May 2015 20:58:26 +0200 Subject: [PATCH] Add buildUrl in the description of the merge message. When you have more than one project which takes part in a merge request, it would be feasible to see directly which job voted in favor or not for the merge request. So add it it directly in the visible output. --- .../java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java b/src/main/java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java index 42e5c63..ea0c1bf 100644 --- a/src/main/java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java +++ b/src/main/java/com/dabsquared/gitlabjenkins/GitLabPushTrigger.java @@ -412,7 +412,7 @@ public class GitLabPushTrigger extends Trigger> { msg.append(" Jenkins Build ").append(run.getResult().color.getDescription()); String buildUrl = Jenkins.getInstance().getRootUrl() + run.getUrl(); msg.append("\n\nResults available at: ") - .append("[").append("Jenkins").append("](").append(buildUrl).append(")"); + .append("[").append("Jenkins " + buildUrl).append("](").append(buildUrl).append(")"); try { GitlabProject proj = new GitlabProject(); proj.setId(cause.getMergeRequest().getObjectAttribute().getTargetProjectId());