Cannot trigger jobs due internal certificate.
Hello,
Great job with the plugin! But i have a problem
My gitlab instance have a SSL certificate generated using my internal CA. I'm trying to trigger the downstream pipeline, but the plugin can't do the api call because maven not know the certification path.
The java image that i'm using to run the pipeline already have the CA on java trust store, but seems like maven don't consider it.
[INFO] Scanning for projects...
[INFO]
[INFO] --------------------< dev.ocanema.java:dependency >---------------------
[INFO] Building dependency 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- gitlab-dependency-maven-plugin:1.3.0:trigger (default-cli) @ dependency ---
[INFO] Cluster created with settings {hosts=[mongodb:30892], mode=SINGLE, requiredClusterType=UNKNOWN, serverSelectionTimeout='30000 ms'}
[INFO] Opened connection [connectionId{localValue:1, serverValue:2587}] to mongodb:30892
[INFO] Monitor thread successfully connected to server with description ServerDescription{address=mongodb:30892, type=STANDALONE, state=CONNECTED, ok=true, minWireVersion=0, maxWireVersion=4, maxDocumentSize=16777216, logicalSessionTimeoutMinutes=null, roundTripTimeNanos=1180586}
[INFO] Opened connection [connectionId{localValue:2, serverValue:2588}] to mongodb:30892
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.066 s
[INFO] Finished at: 2021-04-15T01:04:43+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.gitlab.smueller18.gitlab:gitlab-dependency-maven-plugin:1.3.0:trigger (default-cli) on project dependency: Execution default-cli of goal com.gitlab.smueller18.gitlab:gitlab-dependency-maven-plugin:1.3.0:trigger failed: Failed triggering downstream jobs: Error while triggering jobs (HttpStatusCode: 0): javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
ERROR: Job failed: command terminated with exit code 1
I tried using maven options to bypass certificate validation, but doesn't work.
MAVEN_OPTS="-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true"
Any idea
Thanks