KostyaSha / yet-another-docker-plugin

Jenkins Yet Another Docker Plugin
https://plugins.jenkins.io/yet-another-docker-plugin
MIT License
83 stars 48 forks source link

plugin not working with >= ssh-slaves-plugin-1.30.0 #278

Open rdevries opened 4 years ago

rdevries commented 4 years ago

After the update of the ssh-slaves plugin to 1.30.0 we are unable to get the containers running again. (1.28.1 is working fine, 1.31.0 is broken as well) It keeps provisioning and after a little bit of research we found out that it somehow was unable to find the the selected credentials for the docker container.

I also created an issue in Jira for jenkins and the ssh-slaves-plugin (https://issues.jenkins-ci.org/browse/JENKINS-59879) because i don't know which one is the cause of the issue.

We use the SSH Docker Computer Launcher with SSH credentials (username password). I tried changing the Host Key Verification Strategy to Non verifying Verification Strategy but that didnt help either.

We are currently running yet-another-docker-plugin version 0.1.4

KostyaSha commented 4 years ago

What plugin version do you use?

rdevries commented 4 years ago

Oh sorry, forgot to mention it here 0.1.4 (i'll update the description)

KostyaSha commented 4 years ago

please use 0.1.5

rdevries commented 4 years ago

where can i find 0.1.5 ? 0.1.4 seems to be the latest (http://mirrors.jenkins-ci.org/plugins/yet-another-docker-plugin/)

KostyaSha commented 4 years ago

https://repo.jenkins-ci.org/releases/com/github/kostyasha/yet-another-docker/yet-another-docker-plugin/0.1.5/yet-another-docker-plugin-0.1.5.hpi

rdevries commented 4 years ago

Updated to 0.1.5, the problem remains the same :(


java.lang.InterruptedException: Validate configuration:
The selected credentials cannot be found

    at hudson.plugins.sshslaves.SSHLauncher.checkConfig(SSHLauncher.java:900)
    at hudson.plugins.sshslaves.SSHLauncher.launch(SSHLauncher.java:402)
    at hudson.slaves.DelegatingComputerLauncher.launch(DelegatingComputerLauncher.java:64)
    at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:297)
    at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
    at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)```
KostyaSha commented 4 years ago

the update of the ssh-slaves plugin to 1.30.0

https://github.com/jenkinsci/ssh-slaves-plugin/commit/62346f1c0bb4940acd22c7dacf612e15bc97c3ab

More and more brekages from ssh-slaves-plugin. Please update it to the latest >=1.30.1

rdevries commented 4 years ago

yeah that fix was included in version 1.30.1 ( i found the issue in jira as well and got my hopes up on that one as well :()

The version that we are using is version 1.31.0 which should include it as well. (it does according to the sources in github)

KostyaSha commented 4 years ago

So config works ok, but credentials lookup fails

KostyaSha commented 4 years ago

Is it still actual?

rdevries commented 4 years ago

Sorry,

I haven't been able to look into this anymore. I no long work on this project either, so you can close it if you want.