Hello @moksha
The below message,
javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
clearly indicates that your Java distribution is not able to build the certification path to the requested url.
If you are using an internal SCM like github enterprise and have a self signed certificate (or a certificate not trusted by a CA) you have to import it into the Java keystore.
Some documentation about this import can be found on the web, like here
Alex.