Skip to content

Conversation

@jglick
Copy link
Member

@jglick jglick commented Jul 14, 2025

No description provided.

rule.jenkins.addNode(new DumbSlave(
name,
"/home/jenkins/agent",
new SSHLauncher(connectionDetails.host, connectionDetails.port, creds.getId())));
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No compelling reason to integrate with #570 for now, since the utility deliberately papers over details about how the agent is set up: it just needs to live “somewhere else”.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to also enable authentication via username and password?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will be a different test, as one already exists. The point of this test is to use the official outboundAgent Docker image. We use an Ubuntu Docker image on purpose in the other tests.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it make sense to also enable authentication via username and password?

No, because we do not care how the launcher works, just that it does. This is a test utility, not a test of the SSH launcher.

package test.ssh_agent;

import hudson.model.Slave;
import org.junit.Rule;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Could it be JUnit 5? we recently migrate testcontainers test to JUnit 5

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the test uses RealJenkinsRule, this would require jenkinsci/jenkins-test-harness#988 or similar in order to work with JUnit 5

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

like this one #562

@jglick jglick requested a review from kuisathaverat July 17, 2025 22:45
@kuisathaverat kuisathaverat merged commit 0d059c7 into jenkinsci:main Jul 18, 2025
15 checks passed
@jglick jglick deleted the OutboundAgent branch July 18, 2025 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants