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.
This commit is contained in:
Mirko Friedenhagen 2015-05-14 20:58:26 +02:00
parent 3634056eb9
commit 1f397106f9
1 changed files with 1 additions and 1 deletions

View File

@ -412,7 +412,7 @@ public class GitLabPushTrigger extends Trigger<Job<?, ?>> {
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());