我想在第一次安装jenkins之后在jenkins服务器上运行此命令:
& "C:\Program Files (x86)\Jenkins\jre\bin\java.exe" -jar 'C:\Program Files (x86)\Jenkins\war\WEB-INF\jenkins-cli.jar' -s https://localhost list-plugins
当我尝试访问localhost或127.0.0.1(将jenkins设置为侦听端口80)时,出现此错误:
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No subject alternative DNS name matching localhost found.
如何在主服务器上的终端会话中执行jenkins cli命令?