Skip to content

Commit 9ade108

Browse files
committed
Simpler InboundAgentRule.AgentArguments constructor
1 parent 6224063 commit 9ade108

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ THE SOFTWARE.
183183
<dependency>
184184
<groupId>org.jenkins-ci.main</groupId>
185185
<artifactId>jenkins-test-harness</artifactId>
186-
<version>2439.vee0607d480ea_</version>
186+
<version>2443.v1f61c6816c2c</version>
187187
<scope>test</scope>
188188
<exclusions>
189189
<exclusion>

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)