Issue
- You are using a private repository and while trying to configure it for the CI service you notice the webhook is not automatically created
- Also the following logs are shown in the INFRA environment
Aug 13 16:11:14.665 build-6 ci[ci-0] [DXP Cloud] The value set for LCP_CI_SHALLOW_CLONE_DEPTH is invalid:
Aug 13 16:11:14.665 build-6 ci[ci-0] [DXP Cloud] Value must be an integer.
Aug 13 16:11:16.070 build-6 ci[ci-0] [WARNING][io.jenkins.plugins.gitlabbranchsource.GitLabHookCreator register] Could not manage project hooks for user/liferay-dxp-cloud on https://gitlab.privateserver.com/
Aug 13 16:11:16.070 build-6 ci[ci-0] org.gitlab4j.api.GitLabApiException: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at org.gitlab4j.api.AbstractApi.handle(AbstractApi.java:664)
at org.gitlab4j.api.AbstractApi.get(AbstractApi.java:216)
at org.gitlab4j.api.Pager.(Pager.java:92)
....
Environment
- Liferay PaaS 7.x
Resolution
- This is caused by SSL validation errors with the certificate from the private server, likely, the certificate installed is not trusted by all browsers.
- You can check if the certificate is valid using third-party tools such as SSL Checker
- Once the certificate chain is correct, you can try saving the environment variables in the CI service again and check if this automatically creates the webhook in your repository.
Additional Information