Skip to content

Commit

Permalink
build completed for RefUpdated events with REST
Browse files Browse the repository at this point in the history
If REST API enabled, sending of build completed notifications for RefUpdated events are incorrectly attempted.

[FIXED JENKINS-31781]
  • Loading branch information
Scott Hebert committed Nov 27, 2015
1 parent 3bfe912 commit b64d4d7
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -120,7 +120,8 @@ public void queueBuildCompleted(BuildMemory.MemoryImprint memoryImprint, TaskLis
if (serverName != null) {
IGerritHudsonTriggerConfig config = getConfig(serverName);
if (config != null) {
if (config.isUseRestApi()) {
if (config.isUseRestApi()
&& memoryImprint.getEvent() instanceof ChangeBasedEvent) {
GerritSendCommandQueue.queue(new BuildCompletedRestCommandJob(config, memoryImprint, listener));
} else {
GerritSendCommandQueue.queue(new BuildCompletedCommandJob(config, memoryImprint, listener));
Expand Down

0 comments on commit b64d4d7

Please sign in to comment.