Not able to update jenkins plugins

few options

  1. Update JRE

The error sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target during Jenkins plugin updates can often be resolved by updating the Java Runtime Environment (JRE). This ensures that the latest security certificates are available.

  1. Update Jenkins Update Center URL

Another potential issue could be an outdated URL for the Jenkins update center. You can try updating the URL in the hudson.model.UpdateCenter.xml file to http://updates.jenkins-ci.org/update-center.json.

  1. Install CA Certificates

If the issue is related to certificate errors, you can try installing the CA certificates using the following command:

sudo yum install -y ca-certificates

Alternatively, if you are downloading plugins manually, you can use the --no-check-certificate option to download insecurely.

  1. Verify Java Properties and Environment Variables

Ensure that Java properties are correctly set. Java properties are case-sensitive, so make sure you are using -Djava.net.ssl.trustStore instead of -DJava.net.ssl.trustStore. Also, verify that $JENKINS_HOME is correctly set and is different from $JAVA_HOME.

  1. Modify jenkins-runner.sh Script

If Jenkins is using a test site certificate, the issue might be related to the jenkins-runner.sh script not passing the httpsPrivateKey and httpsCertificate variables from the plist file to the command line used to launch Jenkins. You can add the following lines to jenkins-runner.sh to fix it:

check also Okami: Seek How Know Now it might give you more info