Fixed end of substring in getAgentValue#163
Conversation
|
What is the text output that was misparsed on Windows? This looks like something that would benefit from test coverage. |
I don't know how to view the problem text. I thought to rebuild this java-file but I have no experience for it. |
|
This is the bigger log piece: I would try to check the command manually. What command should I enter? |
ssh-agent on your agent machine and see what format the output is in.
|
|
When I just run |
|
I'm trying to work with Windows Server 2019. SSH agent works as a service there. And |
|
I understood the problem! Two versions of OpenSSH agents are present on My builder node: OSS version (in I modified Don't the plugin use |
withEnv('PATH+EXTRA=…') {…}. It could be made to do so I suppose, just never came up. If you fix the path for java -jar agent.jar that would be honored.
Not sure what Microsoft’s version of the tool does, if it is not printing anything. Would be nice if the plugin automatically detected this tool and at least failed with a clear error. |
|
Closing as this does not seem like a fix for the actual issue, though some improvements as mentioned above would be helpful. |
Do you think a solution would be to run the ssh-agent included in a (c)git installation for Windows? If yes, this plugin could look up the git installation if it detects to run on Windows e.g. by using So this plugin maybe could append |
|
This plugin does nothing all that special. If you run into any issues, just stop using it and run |
That's relatable, but at the same time it's also not a satisfactory situation from a users perspective if this plugin doesn't work on Windows at all (as far as I understand it), while there is a possible solution. Furthermore it's currently not easy to understand what the issue actually is. |
Fixed end of substring in
getAgentValue. Otherwise the following error may occour:I found it in job on Windows agent.