stderr: error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none
The reason for this error is that your Jenkins server is missing the root certificate to verify the certificate used in Helix TeamHub.
In order to fix this error, you'll need to import the root certificate to your Jenkins server.
On Ubuntu (14.04) this can be done by copying the root certificate to the server and issuing the following commands:
sudo cp example-root.pem /usr/local/share/ca-certificates/
In addition you might encounter the following error:
Failed to connect to repository : sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
This can be fixed by importing the root certificate to the keystore on the server (the location may vary) and restarting Jenkins:
keytool -import -keystore /etc/ssl/certs/java/cacerts -file example-root.pem