credentials-binding-plugin and private key files

1,414 views
Skip to first unread message

Andreas Magnusson

unread,
Jun 22, 2021, 2:19:20 AM6/22/21
to Jenkins Users
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

Björn Pedersen

unread,
Jun 22, 2021, 9:02:51 AM6/22/21
to Jenkins Users
This message has been introduced by https://github.com/jenkinsci/credentials-binding-plugin/pull/132 (so it is only related to the credentials-binding -plugin version, not the core). 
Reply all
Reply to author
Forward
0 new messages