feat(parameters): [mr-last-commit] Add merge request last commit ID to the set of parameters that are exposed as environment variables.

This commit is contained in:
Dan Forbes 2016-08-15 15:46:05 -05:00
parent b39e2321ba
commit 68772128ba
2 changed files with 2 additions and 0 deletions

View File

@ -211,6 +211,7 @@ These include:
* gitlabMergeRequestDescription
* gitlabMergeRequestId
* gitlabMergeRequestIid
* gitlabMergeRequestLastCommit
* gitlabTargetBranch
* gitlabTargetRepoName
* gitlabTargetNamespace

View File

@ -97,6 +97,7 @@ public final class CauseData {
variables.put("gitlabMergeRequestDescription", mergeRequestDescription);
variables.put("gitlabMergeRequestId", mergeRequestId == null ? "" : mergeRequestId.toString());
variables.put("gitlabMergeRequestIid", mergeRequestIid == null ? "" : mergeRequestIid.toString());
variables.put("gitlabMergeRequestLastCommit", lastCommit);
variables.put("gitlabTargetBranch", targetBranch);
variables.put("gitlabTargetRepoName", targetRepoName);
variables.put("gitlabTargetNamespace", targetNamespace);