I have a pipeline library that needs to communicate over https to Vault in order to read secrets. Only problem is that Vault's SSL certificate is signed by a CA that is not trusted by Jenkins. This results in the following error.
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused: sun.security.validator.ValidatorException: PKIX path building failed
Following the instructions here: https://support.cloudbees.com/hc/en-us/articles/203821254-How-to-install-a-new-SSL-certificate- I added the CA to the keystore then configured and restarted Jenkins. When the pipeline tries to run, it now can't fetch it's dependencies.
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
General error during conversion: Error grabbing Grapes -- [unresolved dependency: org.codehaus.groovy.modules.http-builder#http-builder;0.7: not found]
java.lang.RuntimeException: Error grabbing Grapes -- [unresolved dependency: org.codehaus.groovy.modules.http-builder#http-builder;0.7: not found]