From 2.419 to 2.426, it cannot find valid certification path to requested target when connecting with sonar server

Try this(Works for me now):

append this argument

  • -trustcacerts
##### docker
# if your jenkins in container whose name is "jenkins", do this:
docker exec jenkins sh -c "echo | openssl s_client -connect sonar.m.local:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /var/tmp/sonarqube.crt"

# delete it if existed
docker exec jenkins sh -c "keytool -delete -alias sonarqube -cacerts -storepass changeit"

# import it with "-noprompt"
docker exec jenkins sh -c "keytool -import -alias sonarqube -file /var/tmp/sonarqube.crt -cacerts -storepass changeit -noprompt -trustcacerts"

BTW

I also upgraded to 2.430