-
Notifications
You must be signed in to change notification settings - Fork 47
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
Configuration-as-Code compatibility: cannot connect to containers using SSH #248
Comments
I should add, once logged in to Jenkins, it is possible to navigate in the UI to the YADP configuration and set the SSH credential back from the 'fake' SSH credential back to the intended one - the connection works fine after doing that |
I think you need compare config.xml on file system before and after. try cp it and diff after save |
On second inspection, it looks like it's just not recognising the credentialId - in the UI, the credentials field is 'none'. I now can't reproduce the error I had before (something creating a new SSH credential) Once I select the relevant credential from the drop-down, the config diff is (old <-> new):
|
It's tricky to reproduce, but I'm seeing one of the symptoms every time I start up Jenkins (no SSH credential loaded into YetAnotherDocker configuration / new empty credential added to Jenkins and loaded into YetAnotherDocker configuration). Either way, the correct credential is not appearing in the YetAnotherDocker config in Jenkins UI. I've checked my |
When configuring this plugin using the Configuration as Code plugin, SSH connections to containers are failing.
On closer inspection, it seems that the Yet Another Docker plugin is doing the following:
dockerComputerSSHLauncher
sectionlogs:
The new SSH credential created:
Its contents:
The text was updated successfully, but these errors were encountered: