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:
parent
3634056eb9
commit
1f397106f9
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue