Skip to content

Commit c4d2197

Browse files
committed
Clearer to just ls -l $SSH_AUTH_SOCK.
1 parent b3f0136 commit c4d2197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/com/cloudbees/jenkins/plugins/sshagent/SSHAgentStepWorkflowTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void evaluate() throws Throwable {
5353
job.setDefinition(new CpsFlowDefinition(""
5454
+ "node {\n"
5555
+ " sshagent (credentials: ['" + CREDENTIAL_ID + "']) {\n"
56-
+ " sh 'set | grep SSH_AUTH_SOCK && ssh -o StrictHostKeyChecking=no -p " + getAssignedPort() + " -v -l cloudbees " + SSH_SERVER_HOST + "'\n"
56+
+ " sh 'ls -l $SSH_AUTH_SOCK && ssh -o StrictHostKeyChecking=no -p " + getAssignedPort() + " -v -l cloudbees " + SSH_SERVER_HOST + "'\n"
5757
+ " }\n"
5858
+ "}\n", true)
5959
);

0 commit comments

Comments
 (0)