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).
[email protected] schrieb am Dienstag, 22. Juni 2021 um 08:19:20 UTC+2: > 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/02dcde6f-2cf8-47df-8322-7a0743989d30n%40googlegroups.com.
