Created
February 12, 2018 23:19
-
-
Save MattLud/1d02a82d6707ba6c94370ba3bb358cfb to your computer and use it in GitHub Desktop.
ssh-agent-envVars
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public boolean start() throws Exception { | |
StepContext context = getContext(); | |
sockets = new ArrayList<String>(); | |
initRemoteAgent(); | |
//AgentEnvs is Map<String,String> of resulting ssh agent pid and sock. | |
context.newBodyInvoker(). | |
withContext(EnvironmentExpander.merge(getContext().get(EnvironmentExpander.class), EnvironmentExpander.constant(agentEnvs))). | |
withCallback(BodyExecutionCallback.wrap(getContext())).withDisplayName(null).start(); | |
return false; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment