Skip to content

Commit b452ffd

Browse files
authored
Simpler InboundAgentRule.AgentArguments constructor (#10615)
1 parent 46528fa commit b452ffd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/src/test/java/jenkins/security/Security3430Test.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private void createAgent(String name, String remotingResourcePath) throws Throwa
9999
// would be helpful to have an option for a specific agent JAR:
100100
var opts = InboundAgentRule.Options.newBuilder().name(name).skipStart().build();
101101
agents.createAgent(jj, opts);
102-
agents.start(new InboundAgentRule.AgentArguments(jj.getUrl() + "computer/" + name + "/slave-agent.jnlp", jar, jj.runRemotely(Security3430Test::getJnlpMac, name), 1, List.of()), opts);
102+
agents.start(new InboundAgentRule.AgentArguments(jar, jj.getUrl().toString(), name, jj.runRemotely(Security3430Test::getJnlpMac, name), 1, List.of()), opts);
103103
} else {
104104
agents.createAgent(jj, InboundAgentRule.Options.newBuilder().name(name).build());
105105
}

0 commit comments

Comments
 (0)