Merge pull request #483 from necolt/master

Send GitLab messages on unstable builds as well as failed ones
This commit is contained in:
Owen Mehegan 2017-08-31 11:18:21 -07:00 committed by GitHub
commit 37c5c5479a
1 changed files with 1 additions and 1 deletions

View File

@ -109,7 +109,7 @@ public class GitLabMessagePublisher extends MergeRequestNotifier {
@Override
protected void perform(Run<?, ?> build, TaskListener listener, GitLabApi client, Integer projectId, Integer mergeRequestId) {
try {
if (!onlyForFailure || build.getResult() == Result.FAILURE) {
if (!onlyForFailure || build.getResult() == Result.FAILURE || build.getResult() == Result.UNSTABLE) {
client.createMergeRequestNote(projectId, mergeRequestId, getNote(build, listener));
}
} catch (WebApplicationException | ProcessingException e) {