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