Skip to content

Commit

Permalink
Fix build stub to not fail when getBuiltOn() is called in absence of …
Browse files Browse the repository at this point in the history
…Jenkins
  • Loading branch information
nikita-tkachenko-datadog committed May 16, 2024
1 parent 48c36eb commit 9e31a06
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import hudson.EnvVars;
import hudson.model.Build;
import hudson.model.Node;
import hudson.model.Result;
import hudson.model.TaskListener;
import java.io.IOException;
Expand Down Expand Up @@ -31,6 +32,11 @@ public BuildStub(@Nonnull ProjectStub project, Result result, EnvVars envVars, B
this.previousNotFailedBuild = previousNotFailedBuild;
}

@Override
public Node getBuiltOn() {
return null;
}

protected BuildStub(@Nonnull ProjectStub project) throws IOException {
super(project);
}
Expand Down

0 comments on commit 9e31a06

Please sign in to comment.