Skip to content

Commit

Permalink
Allow use triggerRemoteJob step with agent none
Browse files Browse the repository at this point in the history
Looks like agent used only if `loadParamsFromFile` attribute defined.
  • Loading branch information
bozaro committed Sep 2, 2021
1 parent 7f7e9be commit fef4451
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
import hudson.Extension;
import hudson.ExtensionList;
import hudson.FilePath;
import hudson.Launcher;
import hudson.model.Descriptor;
import hudson.model.Run;
import hudson.model.TaskListener;
Expand Down Expand Up @@ -200,7 +199,7 @@ public String getDisplayName() {
@Override
public Set<? extends Class<?>> getRequiredContext() {
Set<Class<?>> set = new HashSet<Class<?>>();
Collections.addAll(set, Run.class, FilePath.class, Launcher.class, TaskListener.class);
Collections.addAll(set, Run.class, TaskListener.class);
return set;
}

Expand Down

0 comments on commit fef4451

Please sign in to comment.