Merge pull request #483 from necolt/master
Send GitLab messages on unstable builds as well as failed ones
This commit is contained in:
commit
37c5c5479a
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue