Skip to content

Commit

Permalink
Merge pull request #122 from jglick/onFinalized
Browse files Browse the repository at this point in the history
Make `BuildTriggerListener` wait for `onFinalized`, not just `onCompleted`
  • Loading branch information
jglick authored Jul 28, 2023
2 parents 03f799b + d38e0ec commit 5f0844d
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.jenkinsci.plugins.workflow.support.steps.build;

import edu.umd.cs.findbugs.annotations.NonNull;
import hudson.AbortException;
import hudson.Extension;
import hudson.console.ModelHyperlinkNote;
Expand Down Expand Up @@ -44,7 +43,7 @@ public void onStarted(Run<?, ?> run, TaskListener listener) {
}

@Override
public void onCompleted(Run<?,?> run, @NonNull TaskListener listener) {
public void onFinalized(Run<?,?> run) {
for (BuildTriggerAction.Trigger trigger : BuildTriggerAction.triggersFor(run)) {
if (!trigger.waitForStart) {
StepContext stepContext = trigger.context;
Expand Down

0 comments on commit 5f0844d

Please sign in to comment.