While running in jenkins in GCP, i faced this error
sudo: no tty present and no askpass program specified
Type below in GCP instance of Jenkins
sudo su
visudo -f /etc/sudoers
add add following line at the end.
jenkins ALL= NOPASSWD: ALL
Jenkins “unable to find valid certification path to requested target” error while importing Git repository
Installing skip-certificate-check worked! Of course, it did not get installed using Jenkins Plugin manager, so I wget updates.jenkins.io/download/plugins/skip-certificate-check/1.0/… to $JENKINS_HOME/plugins and restarted the server, and plugin updates started working again.
Behind Corporate Network, You may face issue while downloading plugins. Follow below steps to configure proxy.
Log on to your Jenkins GUI.
Select Manage Jenkins.
Select Manage Plugins.
Select the Advanced tab.
Enter the proxy server host name and port number.
Click on the Advanced… ...
Restart Jenkins, verity that the proxy settings are still set, and perform a workspace load with a Jenkins job to test.
a read timeout while downloading the plugins in Jenkins
if you install jenkins in windows ,you can add "-Dhudson.model.UpdateCenter.pluginDownloadReadTimeoutSeconds=120" to <arguments> in jenkins/jenkins.xml