We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ls -l $SSH_AUTH_SOCK
1 parent b3f0136 commit c4d2197Copy full SHA for c4d2197
src/test/java/com/cloudbees/jenkins/plugins/sshagent/SSHAgentStepWorkflowTest.java
@@ -53,7 +53,7 @@ public void evaluate() throws Throwable {
53
job.setDefinition(new CpsFlowDefinition(""
54
+ "node {\n"
55
+ " 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"
+ + " sh 'ls -l $SSH_AUTH_SOCK && ssh -o StrictHostKeyChecking=no -p " + getAssignedPort() + " -v -l cloudbees " + SSH_SERVER_HOST + "'\n"
57
+ " }\n"
58
+ "}\n", true)
59
);
0 commit comments