Anyone else noticed this? I just updated my Jenkins to 2.289.1 and some of 
my build that use a private key file for SSH access fail like this 
(complete stacktrace at bottom):
FATAL: Cannot use the same key in both secretValues and publicValues

Turns out that I got rid of the message if I edited my secret and added 
that the username should be a secret. But I don't understand why, and I 
think the error message is extremely useless since I couldn't get any 
diagnostic information from it...

But, I hope it might help anyone else googling the exception message.
/Andreas 

*12:57:17* FATAL: Cannot use the same key in both secretValues and 
publicValues 
*12:57:17* java.lang.IllegalArgumentException: Cannot use the same key in 
both secretValues and publicValues 
*12:57:17* at 
org.jenkinsci.plugins.credentialsbinding.MultiBinding$MultiEnvironment.<init>(MultiBinding.java:101)
 
*12:57:17* at 
org.jenkinsci.plugins.credentialsbinding.impl.SSHUserPrivateKeyBinding.bind(SSHUserPrivateKeyBinding.java:120)
 
*12:57:17* at 
org.jenkinsci.plugins.credentialsbinding.impl.SecretBuildWrapper.setUp(SecretBuildWrapper.java:89)
 
*12:57:17* at hudson.model.Build$BuildExecution.doRun(Build.java:157) 
*12:57:17* at 
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:513) 
*12:57:17* at hudson.model.Run.execute(Run.java:1906) 
*12:57:17* at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 
*12:57:17* at 
hudson.model.ResourceController.execute(ResourceController.java:97) 
*12:57:17* at hudson.model.Executor.run(Executor.java:429) 
*12:57:23* Finished: FAILURE

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f77c26b4-f1a3-45e2-8d25-c5096d0cb3ecn%40googlegroups.com.

Reply via email to