-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[JENKINS-50181] add trailing newline to private keys entered in web UI to appease ssh-add #33
Conversation
Thanks for the PR! Changes look fine at a glance, but I think #32 needs to be finalized before the CI build will pass. |
Keen to see this merged as hitting the same problem |
Does it have any estimated conclusion? |
Code looks good, but needs to be rebased from master apparently. I don't have merge permissions here, though I can try to find someone who can. |
Is there any chance to solve this |
@liath Where do I need to put the new line entry? I don't get it |
When pasting the key into the web UI, you need to make sure there's a newline after the key.
needs to be:
|
src/test/java/com/cloudbees/jenkins/plugins/sshcredentials/impl/BasicSSHUserPrivateKeyTest.java
Outdated
Show resolved
Hide resolved
@liath do you think you'll fix this up and push for merge? |
Just wasted a few hours today until I found this issue/PR, would be really nice if this got merged :) |
Is there a reason this isn't merged? This is a huge pain. Do you need someone else to pick up this PR to get it over the finish line? |
Afaik the failing tests have nothing to do with this PR and it's ready to merge. |
@jglick - hi there, we have been caught by this costing us a couple of hours... wondering if this PR is in a state where it can be merged as it looks like the test has been updated per last review. |
Oh good, the tests pass now. |
This PR got damaged by some kind of Git mistakes, as can be seen in the Commits tab. Please rebase it to one commit, or just close it and file a fresh PR with the patch recommitted. |
Yeah, that was a mess. Should be clean now :) |
We just ran into this, please merge! |
Thanks for reminding me that this was still open. |
I'll work on a 1.17.1 release later today most likely (otherwise later this week sometime). |
Per JENKINS-50181.
If there's no trailing newline ssh-add will get upset and either refuse the key with
Error loading key "<path>": invalid format
or prompt for a password when the key does not have one and fail.I don't know that the ternary is idiomatic, so please let me know if there's anything smelly. Ty!