Open krische opened 3 years ago
Did this work previously?
Yes, it worked in version 774. I noticed it not working in version 780. I didn't get a chance to test it in each version in between yet.
There was a bug in Jenkins core which prevented me from testing this scenario, I couldn't figure out how to get a certificate to work at the time, the bug was fixed in the credentials plugin recently: https://github.com/jenkinsci/credentials-plugin/pull/208
So this can be fixed now
Don't worry about testing other versions, I know where the issue is
Thanks, and I figure it's worth noting that I can successfully "verify" the service principal credential when adding/updating it with a blank client secret. It's only when it actually gets "used" that it doesn't work.
Version report
Jenkins and plugins versions report:
Reproduction steps
Results
Expected result:
It should use the provided certificate with the Service Principal to perform Azure operations
Actual result: Performing an operation (like listing available resource groups) fails with an exception:
java.lang.IllegalArgumentException: clientSecret is null or empty
. Full log entry below: